Skip to content

Commit

Permalink
added createDeployQuickOpenItem method to create `DeployQuickOpenIt…
Browse files Browse the repository at this point in the history
…em` in order to make extension deploy command extensible

Signed-off-by: odelia <[email protected]>
  • Loading branch information
odelia authored and amiramw committed Jan 14, 2021
1 parent 1c84263 commit 31d4749
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v1.10.0

- [plugin] added `createDeployQuickOpenItem` method to create `DeployQuickOpenItem` in order to make extension deploy command extensible [#8919] (https://github.com/eclipse-theia/theia/pull/8919)

## v1.9.0 - 16/12/2020

- [cli] updated error reporting for the `download-plugins` script [#8798](https://github.com/eclipse-theia/theia/pull/8798)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ export class PluginExtDeployCommandService implements QuickOpenModel {
public async onType(lookFor: string, acceptor: (items: QuickOpenItem[]) => void): Promise<void> {
this.items = [];
if (lookFor || lookFor.length > 0) {
this.items.push(new DeployQuickOpenItem(lookFor, this.pluginServer, 'Deploy this plugin'));
this.items.push(this.createDeployQuickOpenItem(lookFor, 'Deploy this plugin'));
}
acceptor(this.items);
}

protected createDeployQuickOpenItem(name: string, description: string): DeployQuickOpenItem {
return new DeployQuickOpenItem(name, this.pluginServer, description);
}

}

export class DeployQuickOpenItem extends QuickOpenItem {
Expand Down

0 comments on commit 31d4749

Please sign in to comment.