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

[LaunchConfigManager]: Improve logic for configuring existing launch.json #945

Merged
merged 3 commits into from
Apr 4, 2022

Conversation

mliao95
Copy link

@mliao95 mliao95 commented Mar 28, 2022

Issue:

Changes:

  • Improve logic for checking for missing configs
    • We now cross reference the user's launch.json configuration with our expected configurations. This allows us to add only the missing configs.
    • This improvement is also passed into the logic to determine if a user's launch.json configuration is supported or not unsupported.

Things to test:

  • Try running Configure launch.json against various launch.json files.
    • this includes missing launch.json, launch.json with some of the configurations, launch.json with none of the configurations, etc.
      image
  • With the different launch.json files, see which ones generate the Configure launch.json button. Assuming that all of the extension configs exist, this button shouldn't show up.

@mliao95 mliao95 requested review from antross and hkal March 28, 2022 23:57
src/launchConfigManager.ts Show resolved Hide resolved
@mliao95 mliao95 requested a review from antross April 4, 2022 21:16
@mliao95 mliao95 merged commit 74f162d into main Apr 4, 2022
antross pushed a commit that referenced this pull request Apr 5, 2022
…json (#945)

* [LaunchConfigManager]: Improve logic for configuring existing launch.json

* handle duplicate names + increase test coverage
@vidorteg vidorteg deleted the user/milia/launch-config-improvements branch January 30, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants