mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
debt - optional chaining
This commit is contained in:
@@ -1063,7 +1063,7 @@ export function toResource(editor: IEditorInput | undefined, options?: IResource
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (options && options.supportSideBySide && editor instanceof SideBySideEditorInput) {
|
||||
if (options?.supportSideBySide && editor instanceof SideBySideEditorInput) {
|
||||
editor = options.supportSideBySide === SideBySideEditor.MASTER ? editor.master : editor.details;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user