We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 373965b commit 7082821Copy full SHA for 7082821
src/extension.ts
@@ -342,4 +342,14 @@ export async function activate(extension: ExtensionContext) {
342
export async function deactivate() {
343
logger.info("marimo extension is now deactivated!");
344
trackEvent("vscode-lifecycle", { action: "deactivate" });
345
+
346
+ // Make sure to stop any running server on VSCode shutdown
347
+ try {
348
+ const serverManager = ServerManager.getInstance(Config);
349
+ if (serverManager) {
350
+ await serverManager.stopServer();
351
+ }
352
+ } catch (e) {
353
+ logger.error("Error stopping server during deactivation", e);
354
355
}
0 commit comments