Skip to content

Commit

Permalink
plugin: support prefix arguments for quickOpen
Browse files Browse the repository at this point in the history
The commit adds support for `prefix` arguments when plugins execute the
`workbench.action.quickOpen` command. Previously `prefix` arguments were
ignored.

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Jun 8, 2021
1 parent f9c0311 commit b91228f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class PluginVscodeCommandsContribution implements CommandContribution {
execute: () => commands.executeCommand('editor.action.gotoLine')
});
commands.registerCommand({ id: 'workbench.action.quickOpen' }, {
execute: () => this.quickOpen.open('')
execute: (prefix?: unknown) => this.quickOpen.open(typeof prefix === 'string' ? prefix : '')
});
commands.registerCommand({ id: 'workbench.action.openSettings' }, {
execute: () => commands.executeCommand(CommonCommands.OPEN_PREFERENCES.id)
Expand Down

0 comments on commit b91228f

Please sign in to comment.