diff options
author | Logan Ramos <lramos15@gmail.com> | 2021-06-21 16:58:41 +0300 |
---|---|---|
committer | Logan Ramos <lramos15@gmail.com> | 2021-06-21 16:59:17 +0300 |
commit | e79612d1589f2da18ce260cfc8defe3bb7796fc3 (patch) | |
tree | cc02f41538f80e2ca926b4eb625adbfbac600c5d /src/vs/workbench/contrib/extensions/common | |
parent | 17b2d1c97906d4538990ed3ab0200e3fafb98a35 (diff) |
Move UntypedEditorInput
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/extensionsInput.ts | 6 | ||||
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts index 32d3c2c8ab7..9806baaee18 100644 --- a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts @@ -6,13 +6,11 @@ import { Schemas } from 'vs/base/common/network'; import { URI } from 'vs/base/common/uri'; import { localize } from 'vs/nls'; -import { EditorInputCapabilities, IEditorInput } from 'vs/workbench/common/editor'; +import { EditorInputCapabilities, IEditorInput, IUntypedEditorInput } from 'vs/workbench/common/editor'; import { EditorInput } from 'vs/workbench/common/editor/editorInput'; import { IExtension } from 'vs/workbench/contrib/extensions/common/extensions'; import { areSameExtensions } from 'vs/platform/extensionManagement/common/extensionManagementUtil'; import { join } from 'vs/base/common/path'; -import { IResourceEditorInputType } from 'vs/workbench/services/editor/common/editorService'; - export class ExtensionsInput extends EditorInput { static readonly ID = 'workbench.extensions.input2'; @@ -42,7 +40,7 @@ export class ExtensionsInput extends EditorInput { return localize('extensionsInputName', "Extension: {0}", this.extension.displayName); } - override matches(other: IEditorInput | IResourceEditorInputType): boolean { + override matches(other: IEditorInput | IUntypedEditorInput): boolean { if (super.matches(other)) { return true; } diff --git a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts index ff3f6817fa3..ce7db69e8fb 100644 --- a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts @@ -5,9 +5,8 @@ import * as nls from 'vs/nls'; import { URI } from 'vs/base/common/uri'; -import { EditorInputCapabilities, IEditorInput } from 'vs/workbench/common/editor'; +import { EditorInputCapabilities, IEditorInput, IUntypedEditorInput } from 'vs/workbench/common/editor'; import { EditorInput } from 'vs/workbench/common/editor/editorInput'; -import { IResourceEditorInputType } from 'vs/workbench/services/editor/common/editorService'; export class RuntimeExtensionsInput extends EditorInput { @@ -39,7 +38,7 @@ export class RuntimeExtensionsInput extends EditorInput { return nls.localize('extensionsInputName', "Running Extensions"); } - override matches(other: IEditorInput | IResourceEditorInputType): boolean { + override matches(other: IEditorInput | IUntypedEditorInput): boolean { if (super.matches(other)) { return true; } |