Skip to content

Commit c139d3b

Browse files
committed
remove old proposal for microsoft#90208
1 parent 7ef215a commit c139d3b

3 files changed

Lines changed: 1 addition & 17 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,23 +1925,13 @@ declare module 'vscode' {
19251925
//#region https://github.com/microsoft/vscode/issues/90208
19261926

19271927
export interface ExtensionContext {
1928-
/**
1929-
* @deprecated THIS API PROPOSAL WILL BE DROPPED
1930-
*/
1931-
asExtensionUri(relativePath: string): Uri;
1932-
19331928
/**
19341929
* The uri of the directory containing the extension.
19351930
*/
19361931
readonly extensionUri: Uri;
19371932
}
19381933

19391934
export interface Extension<T> {
1940-
/**
1941-
* @deprecated THIS API PROPOSAL WILL BE DROPPED
1942-
*/
1943-
asExtensionUri(relativePath: string): Uri;
1944-
19451935
/**
19461936
* The uri of the directory containing the extension.
19471937
*/

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import { ProxyIdentifier } from 'vs/workbench/services/extensions/common/proxyId
5353
import { ExtensionDescriptionRegistry } from 'vs/workbench/services/extensions/common/extensionDescriptionRegistry';
5454
import * as vscode from 'vscode';
5555
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions';
56-
import { originalFSPath, joinPath } from 'vs/base/common/resources';
56+
import { originalFSPath } from 'vs/base/common/resources';
5757
import { values } from 'vs/base/common/collections';
5858
import { ExtHostEditorInsets } from 'vs/workbench/api/common/extHostCodeInsets';
5959
import { ExtHostLabelService } from 'vs/workbench/api/common/extHostLabelService';
@@ -1065,11 +1065,6 @@ class Extension<T> implements vscode.Extension<T> {
10651065
this.extensionKind = kind;
10661066
}
10671067

1068-
asExtensionUri(relativePath: string): URI {
1069-
checkProposedApiEnabled(this.packageJSON);
1070-
return joinPath(this.packageJSON.extensionLocation, relativePath);
1071-
}
1072-
10731068
get isActive(): boolean {
10741069
return this._extensionService.isActivated(this._identifier);
10751070
}

src/vs/workbench/api/common/extHostExtensionService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ export abstract class AbstractExtHostExtensionService implements ExtHostExtensio
371371
get storagePath() { return that._storagePath.workspaceValue(extensionDescription); },
372372
get globalStoragePath() { return that._storagePath.globalValue(extensionDescription); },
373373
asAbsolutePath(relativePath: string) { return path.join(extensionDescription.extensionLocation.fsPath, relativePath); },
374-
asExtensionUri(relativePath: string) { return joinPath(extensionDescription.extensionLocation, relativePath); },
375374
get logPath() { return path.join(that._initData.logsLocation.fsPath, extensionDescription.identifier.value); }
376375
});
377376
});

0 commit comments

Comments
 (0)