-
Notifications
You must be signed in to change notification settings - Fork 92
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
Issue #1428: Limit commands shown in context menu on multi-select #1438
Conversation
Is it possible to convert the regex to a positive check rather than a negative check on listMultiSelection? So we only need to add it in one or two
|
I don't think so. Since you can only turn on multi-select for the whole tree, you have to put controls on the ones that don't support it. AFAIK VSCode doesn't have any other way to tell that the command is unsupported, and it will try to run the unsupported commands even when many items are selected. Info about multi-select for custom trees (turned on when the |
A thought from Venkat: will a phrase like |
@katelynienaber I have a vague recollection of the Zowe Explorer squad discussing this (or at least the wording of this context menu item), and I think you had proposed just changing it to "Delete" (for both data sets and members), as that's the wording VS Code uses for both files and folders (single or multiple selection). Using this wording would also cover the edge(?) case where a user multi-selects a mix of data sets and members. |
Signed-off-by: Katelyn Nienaber <[email protected]>
…xtension-for-zowe into limit-multi-select
@lauren-li this has been added! |
@katelynienaber can do the audit fix like so, the fix is also in Fernando's PR |
Signed-off-by: Katelyn Nienaber <[email protected]>
@JillieBeanSim Audit is fixed and pushed... |
@lauren-li Do you think a change in the docs is needed here? |
@jellypuno Yes, it would be good to put a short explanation into |
@katelynienaber, |
Please refer to 7f97adf for the latest code changes. |
Proposed changes
Fix for issue #1428.
This is only a change in the Datasets tree (because only Datasets tree supports multi-select at this time).
Also, if you multi-select datasets/members and then try to do something with the profile, it is disabled. I did this because you could multi-select profiles and datasets, and then try to run a profiles command. So, I think we should handle this in another PR and for now it is simply disabled.
Release Notes
Milestone: Backlog
Changelog: Commands which do not support multi-select are hidden when many elemene
Types of changes
What types of changes does your code introduce to Zowe Explorer?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executedFurther comments
It would be really cool to merge this before I add multi-copy/paste ^^' That's why I added this to 21PI3, because that is the deadline on the multi-select completion.