diff options
author | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-12-10 14:14:09 +0300 |
---|---|---|
committer | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-12-10 14:14:46 +0300 |
commit | a55d9674eaec9f392f1c18eaa3b6f39da80cb1f0 (patch) | |
tree | 83b9172546311165c0b7e8e03bf61f6659011bfa /src/vs/workbench/contrib/extensions/common | |
parent | a1842c8f633237d6d850ada5772359ad32480655 (diff) |
clean up extensions editor code
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/extensions.ts | 6 | ||||
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/extensionsInput.ts | 12 |
2 files changed, 5 insertions, 13 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/extensions.ts b/src/vs/workbench/contrib/extensions/common/extensions.ts index 436c410bf95..1f377b2fe1b 100644 --- a/src/vs/workbench/contrib/extensions/common/extensions.ts +++ b/src/vs/workbench/contrib/extensions/common/extensions.ts @@ -68,11 +68,11 @@ export interface IExtension { readonly extensionPack: string[]; readonly telemetryData: any; readonly preview: boolean; - getManifest(preRelease: boolean, token: CancellationToken): Promise<IExtensionManifest | null>; + getManifest(token: CancellationToken): Promise<IExtensionManifest | null>; hasReadme(): boolean; - getReadme(preRelease: boolean, token: CancellationToken): Promise<string>; + getReadme(token: CancellationToken): Promise<string>; hasChangelog(): boolean; - getChangelog(preRelease: boolean, token: CancellationToken): Promise<string>; + getChangelog(token: CancellationToken): Promise<string>; readonly server?: IExtensionManagementServer; readonly local?: ILocalExtension; gallery?: IGalleryExtension; diff --git a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts index 9e222c71023..b5c0ed689b5 100644 --- a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts @@ -8,7 +8,7 @@ import { URI } from 'vs/base/common/uri'; import { localize } from 'vs/nls'; import { EditorInputCapabilities, IUntypedEditorInput } from 'vs/workbench/common/editor'; import { EditorInput } from 'vs/workbench/common/editor/editorInput'; -import { ExtensionEditorTab, IExtension, IExtensionsWorkbenchService } from 'vs/workbench/contrib/extensions/common/extensions'; +import { ExtensionEditorTab, IExtension } from 'vs/workbench/contrib/extensions/common/extensions'; import { areSameExtensions } from 'vs/platform/extensionManagement/common/extensionManagementUtil'; import { join } from 'vs/base/common/path'; import { IEditorOptions } from 'vs/platform/editor/common/editor'; @@ -38,16 +38,8 @@ export class ExtensionsInput extends EditorInput { }); } - constructor( - private _extension: IExtension, - @IExtensionsWorkbenchService extensionsWorkbenchService: IExtensionsWorkbenchService - ) { + constructor(private _extension: IExtension) { super(); - this._register(extensionsWorkbenchService.onChange(extension => { - if (extension && areSameExtensions(this._extension.identifier, extension.identifier)) { - this._extension = extension; - } - })); } get extension(): IExtension { return this._extension; } |