Skip to content

Commit

Permalink
Do not close peek widget when changing editors
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
  • Loading branch information
RomanNikitenko committed Mar 16, 2020
1 parent 18dae15 commit 32b26b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/monaco/src/browser/monaco-editor-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 32b26b2

Please sign in to comment.