From caf80525c2edfb2a5837d3bfa63ef330f933ee62 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 23 Nov 2017 08:44:35 +0100 Subject: [PATCH] Cannot read property 'light' of null. Fixes #38750 --- src/vs/editor/browser/services/codeEditorServiceImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/browser/services/codeEditorServiceImpl.ts b/src/vs/editor/browser/services/codeEditorServiceImpl.ts index 1a5b5219870..5dfe1c8c4c5 100644 --- a/src/vs/editor/browser/services/codeEditorServiceImpl.ts +++ b/src/vs/editor/browser/services/codeEditorServiceImpl.ts @@ -35,7 +35,7 @@ export class CodeEditorServiceImpl extends AbstractCodeEditorService { styleSheet: this._styleSheet, key: key, parentTypeKey: parentTypeKey, - options: options + options: options || Object.create(null) }; if (!parentTypeKey) { provider = new DecorationTypeOptionsProvider(this._themeService, providerArgs);