mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
remove old proposal for https://github.com/microsoft/vscode/issues/90208
This commit is contained in:
10
src/vs/vscode.proposed.d.ts
vendored
10
src/vs/vscode.proposed.d.ts
vendored
@@ -1925,11 +1925,6 @@ declare module 'vscode' {
|
||||
//#region https://github.com/microsoft/vscode/issues/90208
|
||||
|
||||
export interface ExtensionContext {
|
||||
/**
|
||||
* @deprecated THIS API PROPOSAL WILL BE DROPPED
|
||||
*/
|
||||
asExtensionUri(relativePath: string): Uri;
|
||||
|
||||
/**
|
||||
* The uri of the directory containing the extension.
|
||||
*/
|
||||
@@ -1937,11 +1932,6 @@ declare module 'vscode' {
|
||||
}
|
||||
|
||||
export interface Extension<T> {
|
||||
/**
|
||||
* @deprecated THIS API PROPOSAL WILL BE DROPPED
|
||||
*/
|
||||
asExtensionUri(relativePath: string): Uri;
|
||||
|
||||
/**
|
||||
* The uri of the directory containing the extension.
|
||||
*/
|
||||
|
||||
@@ -53,7 +53,7 @@ import { ProxyIdentifier } from 'vs/workbench/services/extensions/common/proxyId
|
||||
import { ExtensionDescriptionRegistry } from 'vs/workbench/services/extensions/common/extensionDescriptionRegistry';
|
||||
import * as vscode from 'vscode';
|
||||
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions';
|
||||
import { originalFSPath, joinPath } from 'vs/base/common/resources';
|
||||
import { originalFSPath } from 'vs/base/common/resources';
|
||||
import { values } from 'vs/base/common/collections';
|
||||
import { ExtHostEditorInsets } from 'vs/workbench/api/common/extHostCodeInsets';
|
||||
import { ExtHostLabelService } from 'vs/workbench/api/common/extHostLabelService';
|
||||
@@ -1065,11 +1065,6 @@ class Extension<T> implements vscode.Extension<T> {
|
||||
this.extensionKind = kind;
|
||||
}
|
||||
|
||||
asExtensionUri(relativePath: string): URI {
|
||||
checkProposedApiEnabled(this.packageJSON);
|
||||
return joinPath(this.packageJSON.extensionLocation, relativePath);
|
||||
}
|
||||
|
||||
get isActive(): boolean {
|
||||
return this._extensionService.isActivated(this._identifier);
|
||||
}
|
||||
|
||||
@@ -371,7 +371,6 @@ export abstract class AbstractExtHostExtensionService implements ExtHostExtensio
|
||||
get storagePath() { return that._storagePath.workspaceValue(extensionDescription); },
|
||||
get globalStoragePath() { return that._storagePath.globalValue(extensionDescription); },
|
||||
asAbsolutePath(relativePath: string) { return path.join(extensionDescription.extensionLocation.fsPath, relativePath); },
|
||||
asExtensionUri(relativePath: string) { return joinPath(extensionDescription.extensionLocation, relativePath); },
|
||||
get logPath() { return path.join(that._initData.logsLocation.fsPath, extensionDescription.identifier.value); }
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user