Skip to content

Commit 2fbc979

Browse files
committed
Split editor command (Cmd+|) throws exception (fixes #26801)
1 parent 0a93ace commit 2fbc979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/common/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export class TextEditorOptions extends EditorOptions {
645645
/**
646646
* Helper to create TextEditorOptions inline.
647647
*/
648-
public static create(settings: ITextEditorOptions): TextEditorOptions {
648+
public static create(settings: ITextEditorOptions = Object.create(null)): TextEditorOptions {
649649
const options = new TextEditorOptions();
650650
options.preserveFocus = settings.preserveFocus;
651651
options.forceOpen = settings.forceOpen;

0 commit comments

Comments
 (0)