mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
es6 - use more find over filter
This commit is contained in:
@@ -937,7 +937,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
|
||||
|
||||
// Multi Montior (fullscreen): try to find the previously used display
|
||||
if (state.display && state.mode === WindowMode.Fullscreen) {
|
||||
const display = displays.filter(d => d.id === state.display)[0];
|
||||
const display = displays.find(d => d.id === state.display);
|
||||
if (display && typeof display.bounds?.x === 'number' && typeof display.bounds?.y === 'number') {
|
||||
this.logService.trace('window#validateWindowState: restoring fullscreen to previous display');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user