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

debug: add multi-root support for add configurations #10875

Merged
merged 1 commit into from
Mar 17, 2022

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #5166.
Closes: #8066.

The commit adds support when executing add configuration... in a multi-root workspace where the user will first be prompted to choose the location for their config (choose the root) before adding. Previously, the first root was always chosen.

How to test

I verified the changes using multiple different setups:

  1. confirm in a single-root workspace, that the changes properly add configurations (verify with .vscode and .theia)
  2. confirm in a multi-root workspace that users will be prompted to choose a root before adding a configuration
  3. confirm step 2 using combinations of workspaces without/with configuration folders, mix-and-match of .vscode and .theia.

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added debug issues that related to debug functionality multi-root issues related to multi-root support labels Mar 11, 2022
@vince-fugnitto vince-fugnitto self-assigned this Mar 11, 2022
@vince-fugnitto vince-fugnitto force-pushed the vf/add-configuration-multi-root branch from 690add0 to ea7e981 Compare March 11, 2022 16:45
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.

  • No workspace -> No op (we should perhaps hide the option in that case, but that's out of scope here)
  • Unsaved workspace no launch -> creates and opens .theia/launch.json
  • Unsaved workspace .vscode/launch -> opens .vscode/launch.json
  • Unsaved workspace .theia/launch -> opens .theia/launch.json
  • Unsaved workspace both/launch -> opens .theia/launch.json
  • Saved empty workspace -> No op (see above)
  • Saved single-root no launch -> creates and opens .theia/launch.json
  • Saved single-root .vscode/launch -> opens .vscode/launch.json
  • Saved single-root .theia/launch -> opens .theia/launch.json
  • Saved single-root both/launch -> opens .theia/launch.json
  • Saved multi-root select with no launch -> quick pick -> creates and opens .theia/launch.json
  • Saved multi-root select with .vscode/launch -> quick pick -> opens .vscode/launch.json
  • Saved multi-root select with .theia/launch -> quick pick -> opens .theia/launch.json
  • Saved multi-root select with both/launch -> quick pick -> .theia/launch.json

@vince-fugnitto vince-fugnitto force-pushed the vf/add-configuration-multi-root branch from ea7e981 to 982cfe3 Compare March 17, 2022 17:56
The commit adds support when executing `add configuration...` in a
multi-root workspace where the user will first be prompted to choose the
location for their config (choose the root) before adding. Previously,
the first root was always chosen.

Signed-off-by: vince-fugnitto <[email protected]>
Co-authored-by: Liang Huang <[email protected]>
@vince-fugnitto vince-fugnitto force-pushed the vf/add-configuration-multi-root branch from 982cfe3 to 0c64755 Compare March 17, 2022 18:24
@vince-fugnitto vince-fugnitto merged commit f403d15 into master Mar 17, 2022
@vince-fugnitto vince-fugnitto deleted the vf/add-configuration-multi-root branch March 17, 2022 18:43
@github-actions github-actions bot added this to the 1.24.0 milestone Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug issues that related to debug functionality multi-root issues related to multi-root support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[debug] support multi-root for 'Add Configuration'
2 participants