Skip to content

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
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