-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[views] pass the selected tree item to a command's argument #3882
Comments
fyi: you should be able to retrieve the currently selected item from the global selection service |
Ok this is about the contribution point https://code.visualstudio.com/api/references/contribution-points#contributes.menus |
@tsmaeder it was implemented in e5c8ff9 @azatsarynnyy Could you verify? |
@akosyakov I've just checked it vscode k8s extension and it works the same way as it's described in the issue. So nothing is changed in the behavior.
|
ok, so it is unrelated to https://code.visualstudio.com/api/references/contribution-points#contributes.menus
only to it 👍 , i updated the desc |
@akosyakov sorry, but shouldn't that be "Pass the selected tree item as an argument to a command"? At least that was the impression I got after speaking to Artem yesterday. Anyway...from the description now, I don't understand what the problem should be. |
The note says only about currently selected resource ( In the case with |
Ok, but I don't see that in the VS Code documentation. |
For this moment in progress implementing two actions:
Found dependent issue, which temporary blocks the development: |
Theia should pass the selected tree item as an argument to the command executed from the context menu. See the attachments for details.
It's related only to the views contributed by the plugins.
Examples
VSCode
The selected tree item is passed to the executed command's argument and the plugin just calls the command.
Theia
The selected tree item isn't provided to the executed command and the plugin asks user to specify it manually.
The text was updated successfully, but these errors were encountered: