提交 b9c5f2f6 编写于 作者: J Johannes Rieken

💄

上级 3e6a5fe4
......@@ -51,7 +51,7 @@ export class MainThreadFileSystem implements MainThreadFileSystemShape {
class RemoteFileSystemProvider implements IFileSystemProvider {
private readonly _onDidChange = new Emitter<IFileChange[]>();
private readonly _registrations: IDisposable[];
private readonly _registration: IDisposable;
readonly onDidChangeFile: Event<IFileChange[]> = this._onDidChange.event;
readonly capabilities: FileSystemProviderCapabilities;
......@@ -64,11 +64,11 @@ class RemoteFileSystemProvider implements IFileSystemProvider {
private readonly _proxy: ExtHostFileSystemShape
) {
this.capabilities = capabilities;
this._registrations = [fileService.registerProvider(scheme, this)];
this._registration = fileService.registerProvider(scheme, this);
}
dispose(): void {
dispose(this._registrations);
this._registration.dispose();
this._onDidChange.dispose();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册