diff options
author | Benjamin Pasero <benjamin.pasero@microsoft.com> | 2021-04-12 15:59:41 +0300 |
---|---|---|
committer | Benjamin Pasero <benjamin.pasero@microsoft.com> | 2021-04-12 15:59:49 +0300 |
commit | 53ec27a6c646b9a032e178ef0878314396942b07 (patch) | |
tree | 4f8baaf79da9f4c0aac20ca322d6a1a8e2e423d4 /src/vs/workbench/contrib/extensions/common | |
parent | 52ee0bd562b3c8924318afb179e4b178cd1c7487 (diff) |
editor input getTypeId() => typeId
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/extensionsInput.ts | 10 | ||||
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts index 1a03601c368..e7b5b1fb483 100644 --- a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts @@ -15,7 +15,11 @@ export class ExtensionsInput extends EditorInput { static readonly ID = 'workbench.extensions.input2'; - get resource() { + override get typeId(): string { + return ExtensionsInput.ID; + } + + override get resource() { return URI.from({ scheme: Schemas.extension, path: join(this.extension.identifier.id, 'extension') @@ -28,10 +32,6 @@ export class ExtensionsInput extends EditorInput { super(); } - getTypeId(): string { - return ExtensionsInput.ID; - } - override getName(): string { return localize('extensionsInputName', "Extension: {0}", this.extension.displayName); } diff --git a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts index df328a2d9b7..3509f78e785 100644 --- a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts @@ -11,6 +11,10 @@ export class RuntimeExtensionsInput extends EditorInput { static readonly ID = 'workbench.runtimeExtensions.input'; + override get typeId(): string { + return RuntimeExtensionsInput.ID; + } + static _instance: RuntimeExtensionsInput; static get instance() { if (!RuntimeExtensionsInput._instance || RuntimeExtensionsInput._instance.isDisposed()) { @@ -25,10 +29,6 @@ export class RuntimeExtensionsInput extends EditorInput { path: 'default' }); - getTypeId(): string { - return RuntimeExtensionsInput.ID; - } - override getName(): string { return nls.localize('extensionsInputName', "Running Extensions"); } |