Revert "sessions - remove CLI support (not used)" (#296088)

* Revert "sessions - remove CLI support (not used) (#295801)"

This reverts commit ebeb2e6828.

* reduce change
This commit is contained in:
Benjamin Pasero
2026-02-18 21:45:01 +01:00
committed by GitHub
parent befc4f7bd8
commit 4f18509dfb
3 changed files with 4 additions and 2 deletions

View File

@@ -1296,8 +1296,8 @@ export class CodeApplication extends Disposable {
const context = isLaunchedFromCli(process.env) ? OpenContext.CLI : OpenContext.DESKTOP;
const args = this.environmentMainService.args;
// Embedded app launches directly into the sessions window
if ((process as INodeProcess).isEmbeddedApp) {
// Handle sessions window first based on context
if ((process as INodeProcess).isEmbeddedApp || (args['sessions'] && this.productService.quality !== 'stable')) {
return windowsMainService.openSessionsWindow({ context, contextWindowId: undefined });
}