first cut of proposed updateWorkspaceFolders API

This commit is contained in:
Benjamin Pasero
2018-01-22 12:45:11 +01:00
parent 752c7b7877
commit f963973eef
7 changed files with 186 additions and 13 deletions

View File

@@ -418,6 +418,9 @@ export function createApiFactory(
set name(value) {
throw errors.readonly();
},
updateWorkspaceFolders: proposedApiFunction(extension, (index, deleteCount, workspaceFoldersToAdd) => {
return extHostWorkspace.updateWorkspaceFolders(extension.displayName || extension.name, index, deleteCount, workspaceFoldersToAdd);
}),
onDidChangeWorkspaceFolders: function (listener, thisArgs?, disposables?) {
return extHostWorkspace.onDidChangeWorkspace(listener, thisArgs, disposables);
},