| 67 | } |
| 68 | |
| 69 | private async install() { |
| 70 | await vscode.window.withProgress( |
| 71 | { |
| 72 | location: vscode.ProgressLocation.Notification, |
| 73 | title: l10n.t('Installing the DWARF debugger...'), |
| 74 | }, |
| 75 | async () => { |
| 76 | try { |
| 77 | await vscode.commands.executeCommand('workbench.extensions.installExtension', EXT_ID); |
| 78 | vscode.window.showInformationMessage( |
| 79 | l10n.t( |
| 80 | 'Installation complete! The extension will be used after you restart your debug session.', |
| 81 | ), |
| 82 | ); |
| 83 | } catch (e) { |
| 84 | vscode.window.showErrorMessage(e.message || String(e)); |
| 85 | } |
| 86 | }, |
| 87 | ); |
| 88 | } |
| 89 | } |