Skip to content

Commit 23815a0

Browse files
author
XVincentX
committed
Remove the extension parameter from open commands
1 parent e38c873 commit 23815a0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ export class ExtensionEditor extends BaseEditor {
263263

264264
private onNavbarChange(extension: IExtension, id: string): void {
265265
switch (id) {
266-
case NavbarSection.Readme: return this.openReadme(extension);
267-
case NavbarSection.Contributions: return this.openContributions(extension);
268-
case NavbarSection.Changelog: return this.openChangelog(extension);
266+
case NavbarSection.Readme: return this.openReadme();
267+
case NavbarSection.Contributions: return this.openContributions();
268+
case NavbarSection.Changelog: return this.openChangelog();
269269
}
270270
}
271271

272-
private openMarkdown(extension: IExtension, content: TPromise<string>, noContentCopy: string) {
272+
private openMarkdown(content: TPromise<string>, noContentCopy: string) {
273273
return this.loadContents(() => content
274274
.then(marked.parse)
275275
.then(renderBody)
@@ -292,15 +292,15 @@ export class ExtensionEditor extends BaseEditor {
292292
}));
293293
}
294294

295-
private openReadme(extension: IExtension) {
296-
return this.openMarkdown(extension, this.extensionReadme.get(), localize('noReadme', "No README available."));
295+
private openReadme() {
296+
return this.openMarkdown(this.extensionReadme.get(), localize('noReadme', "No README available."));
297297
}
298298

299-
private openChangelog(extension : IExtension) {
300-
return this.openMarkdown(extension, this.extensionChangelog.get(), localize('noChangelog', "No CHANGELOG available."));
299+
private openChangelog() {
300+
return this.openMarkdown(this.extensionChangelog.get(), localize('noChangelog', "No CHANGELOG available."));
301301
}
302302

303-
private openContributions(extension: IExtension) {
303+
private openContributions() {
304304
return this.loadContents(() => this.extensionManifest.get()
305305
.then(manifest => {
306306
this.content.innerHTML = '';

0 commit comments

Comments
 (0)