mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
sessions - remove CLI support (not used) (#295801)
* sessions - remove CLI support (not used) * Update src/vs/code/electron-main/app.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1288,8 +1288,8 @@ export class CodeApplication extends Disposable {
|
||||
const context = isLaunchedFromCli(process.env) ? OpenContext.CLI : OpenContext.DESKTOP;
|
||||
const args = this.environmentMainService.args;
|
||||
|
||||
// Open sessions window if requested
|
||||
if ((process as INodeProcess).isEmbeddedApp || args['sessions']) {
|
||||
// Embedded app launches directly into the sessions window
|
||||
if ((process as INodeProcess).isEmbeddedApp) {
|
||||
return windowsMainService.openSessionsWindow({ context, contextWindowId: undefined });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user