You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing extensions it would be nice to have a read-only API to check active context menu items and keybindings. It's already possible to verify the validity of an action triggered by a context menu item or keybinding but there is no way to check if a context menu item or keybinding is active at the right time in a test.
Our best bet right now is verifying the validity of when clauses manually but this can get tedious/error prone in extensions that contribute a large amount of menu items or keybindings or make use of setContext.
I'm not sure what such an API would look like as it would probably require a way to specify what "target" to perform the check on (an open editor, sidebar, etc.) and UI automation is not a goal of the VS Code extension API. It's also kind of a bummer that this API would (probably) only be useful for tests.
The text was updated successfully, but these errors were encountered:
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Without this issue, we do not see a way of checking if context menu items exist and work. Are we maybe overlooking an existing API or UI testing approach?
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
For testing extensions it would be nice to have a read-only API to check active context menu items and keybindings. It's already possible to verify the validity of an action triggered by a context menu item or keybinding but there is no way to check if a context menu item or keybinding is active at the right time in a test.
Our best bet right now is verifying the validity of
when
clauses manually but this can get tedious/error prone in extensions that contribute a large amount of menu items or keybindings or make use ofsetContext
.I'm not sure what such an API would look like as it would probably require a way to specify what "target" to perform the check on (an open editor, sidebar, etc.) and UI automation is not a goal of the VS Code extension API. It's also kind of a bummer that this API would (probably) only be useful for tests.
The text was updated successfully, but these errors were encountered: