-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
#42557 fix - make open in command multiselect aware #43552
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@sriram-dev thanks for your PR. This looks good for me. @Tyriar do you wish to review as well or you leave this up to me? |
directoryMap.set(directoryToOpen, true); | ||
if (configurationService.getValue<ITerminalConfiguration>().terminal.explorerKind === 'integrated') { | ||
const instance = integratedTerminalService.createInstance({ cwd: directoryToOpen }, true); | ||
if (instance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of setting active and showing the panel for every instance, how about we set and show only once for the "primary" selection (I think that's a thing @isidorn?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure will check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a primary selection? How do we identify it if so. Currently its being set for every instance on the order in which instances are selected. So we could choose to set active only for the last instance or first instance. Confirm the approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sriram-dev primary selection is the resource passed in the command. The getResourcesForCommand gets all the other selected elements (including the primary)
@isidorn Yes |
@isidorn Please review and confirm if the changes are good |
@sriram-dev thanks for your PR I have merged it in 🍻 |
Yay! Thanks! |
No description provided.