Expose vscode.openIssueReporter command that allows passing an extensionId to open the reporter with

This commit is contained in:
Rachel Macfarlane
2019-04-11 14:28:53 -07:00
committed by GitHub
parent b53be6efef
commit ea7e2600d8
6 changed files with 53 additions and 25 deletions

View File

@@ -144,6 +144,13 @@ export class RemoveFromRecentlyOpenedAPICommand {
}
CommandsRegistry.registerCommand(RemoveFromRecentlyOpenedAPICommand.ID, adjustHandler(RemoveFromRecentlyOpenedAPICommand.execute));
export class OpenIssueReporter {
public static ID = 'vscode.openIssueReporter';
public static execute(executor: ICommandsExecutor, extensionId: string): Promise<void> {
return executor.executeCommand('workbench.action.openIssueReporter', [extensionId]);
}
}
interface RecentEntry {
uri: URI;
type: 'workspace' | 'folder' | 'file';