mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 23:35:54 +01:00
sessions - restore sessions window when all windows closed (#298793)
This commit is contained in:
@@ -408,7 +408,11 @@ export class CodeApplication extends Disposable {
|
||||
|
||||
// Mac only event: open new window when we get activated
|
||||
if (!hasVisibleWindows) {
|
||||
await this.windowsMainService?.openEmptyWindow({ context: OpenContext.DOCK });
|
||||
if ((process as INodeProcess).isEmbeddedApp || (this.environmentMainService.args['sessions'] && this.productService.quality !== 'stable')) {
|
||||
await this.windowsMainService?.openSessionsWindow({ context: OpenContext.DOCK });
|
||||
} else {
|
||||
await this.windowsMainService?.openEmptyWindow({ context: OpenContext.DOCK });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user