Set relaunch command for window (for #13905)

This commit is contained in:
Tereza Tomcova
2017-04-03 08:47:14 +02:00
committed by Benjamin Pasero
parent 6f42a236d5
commit db48235233
2 changed files with 22 additions and 1 deletions

View File

@@ -219,6 +219,15 @@ export class VSCodeWindow {
this._win.setSheetOffset(22); // offset dialogs by the height of the custom title bar if we have any
}
// Set relaunch command
if (platform.isWindows && product.win32AppUserModelId && typeof this._win.setAppDetails === 'function') {
this._win.setAppDetails({
appId: product.win32AppUserModelId,
relaunchCommand: `"${process.execPath}" -n`,
relaunchDisplayName: product.nameLong
});
}
if (isFullscreenOrMaximized) {
this.win.maximize();
@@ -769,4 +778,4 @@ export class VSCodeWindow {
this._win = null; // Important to dereference the window object to allow for GC
}
}
}