Skip to content

Commit 0f73473

Browse files
committed
Add deprecation warning for rootPath microsoft#69335
1 parent 263312b commit 0f73473

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vs/workbench/api/common/extHost.api.impl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
541541
// namespace: workspace
542542
const workspace: typeof vscode.workspace = {
543543
get rootPath() {
544+
console.warn(`[Deprecation Warning] 'workspace.rootPath' is deprecated and should no longer be used. Please use 'workspace.workspaceFolders' instead. (${extension.publisher}.${extension.name})`);
544545
return extHostWorkspace.getPath();
545546
},
546547
set rootPath(value) {

0 commit comments

Comments
 (0)