(context)
| 11 | const DEFAULT_SERVICE_URL = "http://127.0.0.1:4310"; |
| 12 | |
| 13 | function activate(context) { |
| 14 | outputChannel = vscode.window.createOutputChannel("SimDeck"); |
| 15 | |
| 16 | context.subscriptions.push( |
| 17 | outputChannel, |
| 18 | vscode.commands.registerCommand("simdeck.openSimulatorView", async () => { |
| 19 | try { |
| 20 | const serverUrl = await resolveSimulatorUrl(context); |
| 21 | openSimulatorPanel(serverUrl); |
| 22 | } catch (error) { |
| 23 | const message = error instanceof Error ? error.message : String(error); |
| 24 | outputChannel.appendLine(message); |
| 25 | outputChannel.show(true); |
| 26 | void vscode.window.showErrorMessage(message); |
| 27 | } |
| 28 | }), |
| 29 | vscode.commands.registerCommand("simdeck.stopServer", async () => { |
| 30 | await stopProjectService(context); |
| 31 | await vscode.window.showInformationMessage( |
| 32 | "Stopped the SimDeck project service.", |
| 33 | ); |
| 34 | }), |
| 35 | vscode.commands.registerCommand("simdeck.showOutput", () => { |
| 36 | outputChannel.show(true); |
| 37 | }), |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | function deactivate() {} |
| 42 |
nothing calls this directly
no test coverage detected