From 2c4c43b7b0ff7d1949b65fec1143883aaa9ec05c Mon Sep 17 00:00:00 2001 From: RedCMD Date: Sat, 22 Mar 2025 09:51:10 +1300 Subject: [PATCH 1/2] Disable `installation folder` warning when debugging extensions --- src/vs/workbench/electron-sandbox/window.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/electron-sandbox/window.ts b/src/vs/workbench/electron-sandbox/window.ts index d306dbe5bdc7a..47043ef19da72 100644 --- a/src/vs/workbench/electron-sandbox/window.ts +++ b/src/vs/workbench/electron-sandbox/window.ts @@ -704,7 +704,7 @@ export class NativeWindow extends BaseWindow { })(); // Installation Dir Warning - if (this.environmentService.isBuilt) { + if (this.environmentService.isBuilt && !this.environmentService.debugExtensionHost.debugId) { let installLocationUri: URI; if (isMacintosh) { // appRoot = /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app From d4943a91c73a5e8095f6c8142de27f86c6704ea2 Mon Sep 17 00:00:00 2001 From: RedCMD Date: Tue, 17 Jun 2025 23:19:06 +1200 Subject: [PATCH 2/2] Change `debugId` to `extensionDevelopmentLocationURI` --- src/vs/workbench/electron-browser/window.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/electron-browser/window.ts b/src/vs/workbench/electron-browser/window.ts index 00a4e7083ddfa..d5076906d028b 100644 --- a/src/vs/workbench/electron-browser/window.ts +++ b/src/vs/workbench/electron-browser/window.ts @@ -706,7 +706,7 @@ export class NativeWindow extends BaseWindow { })(); // Installation Dir Warning - if (this.environmentService.isBuilt && !this.environmentService.debugExtensionHost.debugId) { + if (this.environmentService.isBuilt && !this.environmentService.extensionDevelopmentLocationURI?.length) { let installLocationUri: URI; if (isMacintosh) { // appRoot = /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app