mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Open window on first monitor upon first launch (fixes #21990)
This commit is contained in:
@@ -950,9 +950,9 @@ export class WindowsManager implements IWindowsMainService {
|
||||
displayToUse = screen.getDisplayMatching(lastActive.getBounds());
|
||||
}
|
||||
|
||||
// fallback to first display
|
||||
// fallback to primary display or first display
|
||||
if (!displayToUse) {
|
||||
displayToUse = displays[0];
|
||||
displayToUse = screen.getPrimaryDisplay() || displays[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user