From cc4b95f7ad81f5189629b2a6b3e67311fe8a6989 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 19 Feb 2020 10:08:07 +0100 Subject: [PATCH] Add typings for `semanticHighlighting.enabled` (microsoft/monaco-editor#1833) --- src/vs/editor/standalone/browser/standaloneCodeEditor.ts | 5 +++++ src/vs/monaco.d.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/vs/editor/standalone/browser/standaloneCodeEditor.ts b/src/vs/editor/standalone/browser/standaloneCodeEditor.ts index 504f3d2356fe0..30f7f5e350ced 100644 --- a/src/vs/editor/standalone/browser/standaloneCodeEditor.ts +++ b/src/vs/editor/standalone/browser/standaloneCodeEditor.ts @@ -114,6 +114,11 @@ export interface IGlobalEditorOptions { * Defaults to true. */ wordBasedSuggestions?: boolean; + /** + * Controls whether the semanticHighlighting is shown for the languages that support it. + * Defaults to true. + */ + 'semanticHighlighting.enabled'?: boolean; /** * Keep peek editors open even when double clicking their content or when hitting `Escape`. * Defaults to false. diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index ccd369acc0dd2..0216ff21d1d12 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -1098,6 +1098,11 @@ declare namespace monaco.editor { * Defaults to true. */ wordBasedSuggestions?: boolean; + /** + * Controls whether the semanticHighlighting is shown for the languages that support it. + * Defaults to true. + */ + 'semanticHighlighting.enabled'?: boolean; /** * Keep peek editors open even when double clicking their content or when hitting `Escape`. * Defaults to false.