bubble up errors from workspace add/remove

This commit is contained in:
Benjamin Pasero
2017-10-30 14:53:53 +01:00
parent cf149f8a75
commit 044255e5e5
2 changed files with 4 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
return TPromise.as(false);
}
return this._workspaceEditingService.addFolders([{ uri, name }]).then(() => true);
return this._workspaceEditingService.addFolders([{ uri, name }], true).then(() => true);
});
}
@@ -73,7 +73,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
return TPromise.as(false);
}
return this._workspaceEditingService.removeFolders([uri]).then(() => true);
return this._workspaceEditingService.removeFolders([uri], true).then(() => true);
});
}