Skip to content

Commit

Permalink
Add deprecation warning for rootPath #69335
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 23, 2019
1 parent 263312b commit 0f73473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/api/common/extHost.api.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
// namespace: workspace
const workspace: typeof vscode.workspace = {
get rootPath() {
console.warn(`[Deprecation Warning] 'workspace.rootPath' is deprecated and should no longer be used. Please use 'workspace.workspaceFolders' instead. (${extension.publisher}.${extension.name})`);
return extHostWorkspace.getPath();
},
set rootPath(value) {
Expand Down

0 comments on commit 0f73473

Please sign in to comment.