From 23815a07bf545a42b2ecd039601efe062ea91e2f Mon Sep 17 00:00:00 2001 From: XVincentX Date: Thu, 15 Sep 2016 09:15:53 +0200 Subject: [PATCH] Remove the extension parameter from open commands --- .../electron-browser/extensionEditor.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts b/src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts index 409deefadb0..18237bf8a94 100644 --- a/src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts +++ b/src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts @@ -263,13 +263,13 @@ export class ExtensionEditor extends BaseEditor { private onNavbarChange(extension: IExtension, id: string): void { switch (id) { - case NavbarSection.Readme: return this.openReadme(extension); - case NavbarSection.Contributions: return this.openContributions(extension); - case NavbarSection.Changelog: return this.openChangelog(extension); + case NavbarSection.Readme: return this.openReadme(); + case NavbarSection.Contributions: return this.openContributions(); + case NavbarSection.Changelog: return this.openChangelog(); } } - private openMarkdown(extension: IExtension, content: TPromise, noContentCopy: string) { + private openMarkdown(content: TPromise, noContentCopy: string) { return this.loadContents(() => content .then(marked.parse) .then(renderBody) @@ -292,15 +292,15 @@ export class ExtensionEditor extends BaseEditor { })); } - private openReadme(extension: IExtension) { - return this.openMarkdown(extension, this.extensionReadme.get(), localize('noReadme', "No README available.")); + private openReadme() { + return this.openMarkdown(this.extensionReadme.get(), localize('noReadme', "No README available.")); } - private openChangelog(extension : IExtension) { - return this.openMarkdown(extension, this.extensionChangelog.get(), localize('noChangelog', "No CHANGELOG available.")); + private openChangelog() { + return this.openMarkdown(this.extensionChangelog.get(), localize('noChangelog', "No CHANGELOG available.")); } - private openContributions(extension: IExtension) { + private openContributions() { return this.loadContents(() => this.extensionManifest.get() .then(manifest => { this.content.innerHTML = '';