From 8fb22c02ceddf8e975826743ba253f518e0bd0a9 Mon Sep 17 00:00:00 2001 From: j4rviscmd Date: Wed, 24 Jun 2026 15:17:13 +0900 Subject: [PATCH] fix: inactive overlay z-index broken by JS-style comment in CSS The CSS template literal used // Why: line comments, which CSS does not treat as comments. The parser discarded the following z-index: 10000 declaration, leaving the overlay at z-index: auto and hidden behind the workbench (.monaco-workbench has z-index: 1). Convert to /* Why: ... */ so z-index: 10000 applies and the overlay renders above the workbench in production builds. Co-Authored-By: Claude --- .../contrib/coderm/browser/inactiveOverlay.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/contrib/coderm/browser/inactiveOverlay.ts b/src/vs/workbench/contrib/coderm/browser/inactiveOverlay.ts index b32374adde4..9b080af23a8 100644 --- a/src/vs/workbench/contrib/coderm/browser/inactiveOverlay.ts +++ b/src/vs/workbench/contrib/coderm/browser/inactiveOverlay.ts @@ -139,11 +139,11 @@ export class InactiveOverlayController extends Disposable implements IWorkbenchC left: 0; right: 0; bottom: 0; - // Why: 10000 deliberately sits above every standard VS Code layer - // (modal editor backdrop=2540, notifications=2545, quick input=2550, - // dialogs=2575) so the overlay covers all of them when the window is - // inactive — including a dialog or quick pick that happens to be open - // at the moment focus is lost. + /* Why: 10000 deliberately sits above every standard VS Code layer + * (modal editor backdrop=2540, notifications=2545, quick input=2550, + * dialogs=2575) so the overlay covers all of them when the window is + * inactive — including a dialog or quick pick that happens to be open + * at the moment focus is lost. */ z-index: 10000; display: none; align-items: center;