Skip to content

Commit 2c21284

Browse files
committed
Look for SourceKit-LSP options in $XDG_CONFIG_HOME/sourcekit-lsp
The reverse-DNS notation is macOS style and doesn’t feel at home on Linux.
1 parent ddbad85 commit 2c21284

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/Configuration File.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
`.sourcekit-lsp/config.json` configuration files can be used to modify the behavior of SourceKit-LSP in various ways. The following locations are checked. Settings in later configuration files override settings in earlier configuration files
44
- `~/.sourcekit-lsp/config.json`
55
- On macOS: `~/Library/Application Support/org.swift.sourcekit-lsp/config.json` from the various `Library` folders on the system
6-
- If the `XDG_CONFIG_HOME` environment variable is set: `$XDG_CONFIG_HOME/org.swift.sourcekit-lsp/config.json`
6+
- If the `XDG_CONFIG_HOME` environment variable is set: `$XDG_CONFIG_HOME/sourcekit-lsp/config.json`
77
- Initialization options passed in the initialize request
88
- A `.sourcekit-lsp/config.json` file in a workspace’s root
99

Sources/sourcekit-lsp/SourceKitLSP.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ struct SourceKitLSP: AsyncParsableCommand {
263263
override: SourceKitLSPOptions(
264264
path:
265265
URL(fileURLWithPath: xdgConfigHome)
266-
.appendingPathComponent("org.swift.sourcekit-lsp")
266+
.appendingPathComponent("sourcekit-lsp")
267267
.appendingPathComponent("config.json")
268268
)
269269
)

0 commit comments

Comments
 (0)