Skip to content

[6.0] Decode a few keys in SourceKitLSPOptions that we missed before #1647

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 1 commit into from
Sep 6, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 6, 2024

  • Explanation: We forgot to decode the following keys in the custom decode function, which meant that you couldn’t set them using SourceKit-LSP’s config.json file.
  • backgroundPreparationMode
  • sourcekitdRequestTimeout
    In particular this meant that you couldn’t enable the --experimental-prepare-for-indexing preparation mode.
    Add the necessary decoding functions in release/6.0 and eliminate the custom decode logic entirely in main.
  • Scope: Parsing of .sourcekit-lsp/config.json files
  • Risk: Low, applies a common pattern to parse keys in JSON
  • Testing: Manually tested that the --experimental-prepare-for-indexing mode can be enabled via .sourcekit-lsp/config.json now
  • Issue: rdar://135436055
  • Reviewer: @bnbarham @hamishknight

We forgot to decode the following keys in the custom decode function, which meant that you couldn’t set them using SourceKit-LSP’s `config.json` file.
- `backgroundPreparationMode`
- `sourcekitdRequestTimeout`

In particular this meant that you couldn’t enable the `--experimental-prepare-for-indexing` preparation mode.

Add the necessary decoding functions in `release/6.0` and eliminate the custom decode logic entirely in `main`.
@ahoppen ahoppen force-pushed the 6.0/decode-preperation-mode branch from 4bdb574 to 75c70d9 Compare September 6, 2024 20:03
@ahoppen ahoppen enabled auto-merge September 6, 2024 21:20
@ahoppen ahoppen merged commit 8b3275e into swiftlang:release/6.0 Sep 6, 2024
3 checks passed
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