Replies: 1 comment 4 replies
-
Hey @Markingit,
What do you mean with the command's UI? If you mean something like the command palette or menus, don't support async callbacks, since they are constructed synchronously.
Why not? You can use |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written an asynchronous method and want to make the command's isEnabled support async logic. I added an isAsyncEnabled method and re-bound the CommandRegistry, but there is no method to dynamically update or refresh the command's UI.
The command has fireDidChange and onCommandsChangedEmitter.fire() methods, but neither of them triggers a UI update. Since commands cannot be unregistered and re-registered, what should be done?
Beta Was this translation helpful? Give feedback.
All reactions