From 2ce45bf734bf585d9abb89f976190b37838317a6 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 3 Feb 2020 17:32:06 +0100 Subject: [PATCH] Fixes microsoft/monaco-editor#1796: Expose ConfigurationChangedEvent.hasChanged in the API --- src/vs/editor/common/config/editorOptions.ts | 3 --- src/vs/monaco.d.ts | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vs/editor/common/config/editorOptions.ts b/src/vs/editor/common/config/editorOptions.ts index 73c30dd221b..adf546ac92b 100644 --- a/src/vs/editor/common/config/editorOptions.ts +++ b/src/vs/editor/common/config/editorOptions.ts @@ -624,9 +624,6 @@ export class ConfigurationChangedEvent { constructor(values: boolean[]) { this._values = values; } - /** - * @internal - */ public hasChanged(id: EditorOption): boolean { return this._values[id]; } diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index ad9ede1dca1..a683a9b8e2f 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -3089,6 +3089,7 @@ declare namespace monaco.editor { * An event describing that the configuration of the editor has changed. */ export class ConfigurationChangedEvent { + hasChanged(id: EditorOption): boolean; } /** -- GitLab