Skip to content
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

Update view/title commands to account for VS Code change #2439

Merged
merged 3 commits into from
Sep 22, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Sep 21, 2022

This PR accounts for this VS Code change: microsoft/vscode#42903.

A tree's view/title commands will now be called with the selected item for the context object. This means that if the user is working with a multi-project workspace they will be able to bypass project selection in a tree's view/title command by selecting the project's root before clicking on the title's command. We previously had one or two of these commands inline for the root but we can now drop that behaviour.

Demo

default behaviour (quick pick shown):

Screen.Recording.2022-09-21.at.8.43.49.pm.mov

with root selected (project auto-selected for command):

Screen.Recording.2022-09-21.at.8.35.58.pm.mov

@mattseddon mattseddon added the bug Something isn't working label Sep 21, 2022
@mattseddon mattseddon self-assigned this Sep 21, 2022
@mattseddon mattseddon changed the title Fix view/title commands Update view/title commands Sep 21, 2022
@mattseddon mattseddon changed the title Update view/title commands Update view/title commands to account for VS Code change Sep 21, 2022
@mattseddon mattseddon marked this pull request as ready for review September 21, 2022 11:05
Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Probably an issue on my end, but when I select a workspace, then open one of the views, I still get a quickpick pop-up:

Screen.Recording.2022-09-21.at.7.02.06.AM.mov

@mattseddon
Copy link
Member Author

Looks good!

Probably an issue on my end, but when I select a workspace, then open one of the views, I still get a quickpick pop-up:

Screen.Recording.2022-09-21.at.7.02.06.AM.mov

🤦🏻 this change is only available in Insiders until the next VS Code release... probably the most important thing to mention in the descriptions, sorry!

@mattseddon mattseddon enabled auto-merge (squash) September 22, 2022 04:17
@codeclimate
Copy link

codeclimate bot commented Sep 22, 2022

Code Climate has analyzed commit 21716c6 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 85.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 97.0% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit bb10bcc into main Sep 22, 2022
@mattseddon mattseddon deleted the fix-view-title-commands branch September 22, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants