mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
This commit is contained in:
committed by
GitHub
parent
7cd7e3745d
commit
86052e38f3
@@ -378,15 +378,19 @@ export class IssueReporter extends Disposable {
|
||||
|
||||
this.previewButton.onDidClick(() => this.createIssue());
|
||||
|
||||
function sendWorkbenchCommand(commandId: string) {
|
||||
ipcRenderer.send('vscode:workbenchCommand', { id: commandId, from: 'issueReporter' });
|
||||
}
|
||||
|
||||
this.addEventListener('disableExtensions', 'click', () => {
|
||||
ipcRenderer.send('vscode:workbenchCommand', 'workbench.action.reloadWindowWithExtensionsDisabled');
|
||||
sendWorkbenchCommand('workbench.action.reloadWindowWithExtensionsDisabled');
|
||||
});
|
||||
|
||||
this.addEventListener('disableExtensions', 'keydown', (e: KeyboardEvent) => {
|
||||
e.stopPropagation();
|
||||
if (e.keyCode === 13 || e.keyCode === 32) {
|
||||
ipcRenderer.send('vscode:workbenchCommand', 'workbench.extensions.action.disableAll');
|
||||
ipcRenderer.send('vscode:workbenchCommand', 'workbench.action.reloadWindow');
|
||||
sendWorkbenchCommand('workbench.extensions.action.disableAll');
|
||||
sendWorkbenchCommand('workbench.action.reloadWindow');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user