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

workspace: update add and remove folder handling #12242

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

vince-fugnitto
Copy link
Member

What it does

The pull-request removes the now unnecessary preferences ready event listener when registering the commands ADD_FOLDER and REMOVE_FOLDER. The listener is no longer necessary as the framework no longer supports the workspace.supportMultiRootWorkspace preference which required the additional logic.

The change should more easily allow downstream extenders/adopters the possibility of unregistering the command if necessary.

How to test

  1. start the application
  2. open a workspace
  3. confirm that "add folder to workspace" works well
  4. confirm that "remove folder from workspace" works well
  5. confirm on startup that the commands are available given their enableability

Review checklist

Reminder for reviewers

The commit removes the unecessary `preferences.ready` handling when registering the `add` and `remove` folder commands as we no longer support the `supportMultiRootWorkspace`  preference.

The changes should make it easier for downstream to unregister the command if necessary.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added quality issues related to code and application quality multi-root issues related to multi-root support labels Feb 28, 2023
@vince-fugnitto vince-fugnitto self-assigned this Feb 28, 2023
Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

LGTM

@vince-fugnitto vince-fugnitto merged commit d2f9a7a into master Mar 1, 2023
@vince-fugnitto vince-fugnitto deleted the vf/cleanup-multiroot branch March 1, 2023 14:10
@github-actions github-actions bot added this to the 1.36.0 milestone Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multi-root issues related to multi-root support quality issues related to code and application quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants