We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a93ace commit 2fbc979Copy full SHA for 2fbc979
src/vs/workbench/common/editor.ts
@@ -645,7 +645,7 @@ export class TextEditorOptions extends EditorOptions {
645
/**
646
* Helper to create TextEditorOptions inline.
647
*/
648
- public static create(settings: ITextEditorOptions): TextEditorOptions {
+ public static create(settings: ITextEditorOptions = Object.create(null)): TextEditorOptions {
649
const options = new TextEditorOptions();
650
options.preserveFocus = settings.preserveFocus;
651
options.forceOpen = settings.forceOpen;
0 commit comments