diff --git a/packages/monaco/src/browser/monaco-editor-provider.ts b/packages/monaco/src/browser/monaco-editor-provider.ts index 5e90e8946c7ed..d8ac8f8c01d2d 100644 --- a/packages/monaco/src/browser/monaco-editor-provider.ts +++ b/packages/monaco/src/browser/monaco-editor-provider.ts @@ -72,7 +72,7 @@ export class MonacoEditorProvider { const originalGetValue = this.hookedConfigService.getValue.bind(this.hookedConfigService); this.hookedConfigService.getValue = (arg1: any, arg2: any) => { const creationOptions = originalGetValue(arg1, arg2); - if (creationOptions) { + if (typeof creationOptions === 'object') { const eol = this.getEOL(); creationOptions.files = { eol