Disable tree view while refreshing? #2123
Answered
by
gjsjohnmurray
gee4vee
asked this question in
Extension Development QnA
-
Is it possible to disable the nodes in the tree view (or the contextual menu items) while the tree is refreshing? I've seen in our custom extension that if a user tries to invoke a context menu item while the tree is refreshing, it causes undefined property errors and other issues. |
Beta Was this translation helpful? Give feedback.
Answered by
gjsjohnmurray
Nov 26, 2024
Replies: 1 comment 4 replies
-
Can you provide a simple reproduceable example here? I think this might be possible using context keys and updating them during the refresh process. For instance....
|
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
You can set a when clause on the
enablement
property of the command in thecontributes.commands
section of your package.json