Skip to content

Commit fc4787c

Browse files
committed
Use configuration file to enable background indexing
This should be easier than passing command line arguments to SourceKit-LSP.
1 parent 8fea9fa commit fc4787c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/Enable Experimental Background Indexing.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ Background indexing in SourceKit-LSP is available as an experimental feature. Th
1111
- When installing the Xcode 16 beta `"swift.path": "/Applications/Xcode-beta.app/Library/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"`
1212
- In VS Code on other platforms, you need to set the `swift.path` to the `usr/bin` directory of your toolchain’s install location.
1313
- Other editors likely also have a way to pick the Swift toolchain, the exact steps vary by your setup.
14-
3. Enable the experimental `background-indexing` feature.
15-
- In VS Code, add the following to your `settings.json`: `"swift.sourcekit-lsp.serverArguments": [ "--experimental-feature", "background-indexing" ]`
16-
- In other editors, change the invocation that launches `sourcekit-lsp` to pass the `--experimental-feature background-indexing` command line arguments. The exact steps vary by your setup.
14+
3. Enable the experimental `background-indexing` feature by creating a [configuration file](Configuration%20File.md) with the following contents at `~/.sourcekit-lsp/config.json` with the following contents:
15+
```json
16+
{
17+
"backgroundIndexing": true
18+
}
19+
```
1720

1821
## Known issues
1922

0 commit comments

Comments
 (0)