Skip to content

Add a new Generate SourceKit-LSP Configuration command #1726

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

Merged
merged 5 commits into from
Jul 21, 2025

Conversation

award999
Copy link
Contributor

@award999 award999 commented Jul 18, 2025

Description

  • Add a new command that will generate the .sourcekit-lsp/config.json file for one or all the folders in the workspace
  • Separate the select folder quick pick used to generate launch configurations so it could be reused
  • Add configurationBranch setting so the user can hardcode
  • Add a jsonValidation contribution to the manifest, the $schema property added by command takes precedence
  • We'll always fall back to "main" if the expected branch does not exist
  • Add new logic where if "-dev" suffix in version, we assume it is a "main" build

Note in a follow up PR I'm going to add logic to watch this file and prompt them to update the schema if the toolchain version changes

Issue: #1208

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

@award999 award999 force-pushed the sourcekit-config-schema branch from f01a9d9 to 0daa32d Compare July 18, 2025 18:36
@award999 award999 force-pushed the sourcekit-config-schema branch from 0daa32d to d73161f Compare July 21, 2025 13:03
@award999 award999 merged commit 9f874ec into swiftlang:main Jul 21, 2025
35 of 36 checks passed
@award999 award999 deleted the sourcekit-config-schema branch July 21, 2025 14:19
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