From 32b26b27a02a0c21e7c5a17ad1bed5b63ed9c975 Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Thu, 5 Mar 2020 21:26:53 +0200 Subject: [PATCH] Do not close peek widget when changing editors Signed-off-by: Roman Nikitenko --- packages/monaco/src/browser/monaco-editor-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/monaco/src/browser/monaco-editor-provider.ts b/packages/monaco/src/browser/monaco-editor-provider.ts index 96eeeef5b84cf..1c2c2762b8b76 100644 --- a/packages/monaco/src/browser/monaco-editor-provider.ts +++ b/packages/monaco/src/browser/monaco-editor-provider.ts @@ -388,7 +388,7 @@ export class MonacoEditorProvider { const modelPromise = Promise.resolve(model) as any; modelPromise.cancel = () => { }; - openedEditor._contributions['editor.contrib.referencesController'].toggleWidget(range, modelPromise, false); + openedEditor._contributions['editor.contrib.referencesController'].toggleWidget(range, modelPromise, true); return; }