sourcekit-lsp icon indicating copy to clipboard operation
sourcekit-lsp copied to clipboard

`.sourcekit-lsp/config.json` doesn't allow passing traits

Open MaxDesiatov opened this issue 10 months ago • 3 comments

Description

The configuration file allows selecting Swift SDK and triple, but selecting package traits for indexing is currently not possible.

https://github.com/swiftlang/sourcekit-lsp/blob/d5978d5f8c6c32ab50f8265a53caff3defe4952e/Documentation/Configuration%20File.md?plain=1#L17

MaxDesiatov avatar Feb 10 '25 18:02 MaxDesiatov

Synced to Apple’s issue tracker as rdar://144557689

ahoppen avatar Feb 10 '25 20:02 ahoppen

This probably needs to go hand in hand with vscode-swift support to select the enabled traits for the root package.

FranzBusch avatar Feb 11 '25 12:02 FranzBusch

I don't think VS Code support should preclude any improvements in this area. There are other editors that would benefit from it either way, and VS Code users are free to edit the config file directly in the meantime.

MaxDesiatov avatar Feb 11 '25 16:02 MaxDesiatov

This should have been fixed by https://github.com/swiftlang/sourcekit-lsp/pull/1973.

ahoppen avatar Oct 25 '25 12:10 ahoppen