root in fs provider is optional, #36177

This commit is contained in:
Johannes Rieken
2018-01-12 16:20:10 -08:00
parent 65f1bd4b25
commit 8046a03660
2 changed files with 7 additions and 3 deletions

View File

@@ -27,7 +27,10 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
const handle = this._handlePool++;
this._provider.set(handle, provider);
this._proxy.$registerFileSystemProvider(handle, scheme);
this._proxy.$onDidAddFileSystemRoot(<any>provider.root);
if (provider.root) {
// todo@remote
this._proxy.$onDidAddFileSystemRoot(provider.root);
}
let reg: IDisposable;
if (provider.onDidChange) {
reg = provider.onDidChange(event => this._proxy.$onFileSystemChange(handle, <any>event));