This commit is contained in:
Johannes Rieken
2020-03-04 11:20:08 +01:00
parent e32e49521f
commit 72c3bcefb3
3 changed files with 13 additions and 0 deletions

View File

@@ -1015,6 +1015,7 @@ class Extension<T> implements vscode.Extension<T> {
private _identifier: ExtensionIdentifier;
readonly id: string;
readonly extensionUri: URI;
readonly extensionPath: string;
readonly packageJSON: IExtensionDescription;
readonly extensionKind: vscode.ExtensionKind;
@@ -1024,6 +1025,7 @@ class Extension<T> implements vscode.Extension<T> {
this._originExtensionId = originExtensionId;
this._identifier = description.identifier;
this.id = description.identifier.value;
this.extensionUri = description.extensionLocation;
this.extensionPath = path.normalize(originalFSPath(description.extensionLocation));
this.packageJSON = description;
this.extensionKind = kind;