mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 18:22:34 -05:00
Merge from vscode 073a24de05773f2261f89172987002dc0ae2f1cd (#9711)
This commit is contained in:
@@ -332,7 +332,11 @@ export class ElectronMainService implements IElectronMainService {
|
||||
}
|
||||
|
||||
async closeWindow(windowId: number | undefined): Promise<void> {
|
||||
const window = this.windowById(windowId);
|
||||
this.closeWindowById(windowId, windowId);
|
||||
}
|
||||
|
||||
async closeWindowById(currentWindowId: number | undefined, targetWindowId?: number | undefined): Promise<void> {
|
||||
const window = this.windowById(targetWindowId);
|
||||
if (window) {
|
||||
return window.win.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user