mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
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:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user