Created
November 27, 2020 15:41
-
-
Save david-arteaga/423a7adce17b6a8951162188d6f72c24 to your computer and use it in GitHub Desktop.
Re-render Monaco editor completions widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is useful when you have both sync and async completions and don't want to have to wait for the async completions to resolve | |
* to show the already available sync completions. | |
*/ | |
function rerenderCompletions() { | |
editor.trigger('editor', 'hideSuggestWidget', null); | |
editor.trigger('source', 'editor.action.triggerSuggest', null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment