name it getWorkspaceFolder, #28526

This commit is contained in:
Johannes Rieken
2017-07-14 14:04:42 +02:00
parent 5589604823
commit f7e09ce253
5 changed files with 45 additions and 36 deletions

View File

@@ -367,8 +367,8 @@ export function createApiFactory(
set rootPath(value) {
throw errors.readonly();
},
getContainingWorkspaceFolder(resource) {
return extHostWorkspace.getEnclosingWorkspaceFolder(resource);
getWorkspaceFolder(resource) {
return extHostWorkspace.getWorkspaceFolder(resource);
},
get workspaceFolders() {
// proposed api