-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixd/Server/configuration: use
.nixd.json
for `workspace/configurat…
…ion` defaults (#261) When `nixd` in `workspace/configuration` is unset in VSCode, we get `[null]`. This causes the JSON configuration to be used (not overwritten). However, in Emacs, we get `[{}]` instead, so the JSON configuration is overwritten with the default one. By using the JSON configuration as the defaults for `workspace/configuration`, we get the same behaviour when `workspace/configuration` is unset in VSCode and Emacs. The JSON configuration is no longer ignored when `workspace/configuration` is set, but it never takes priority. An additional advantage of this change is that when `workspace/configuration` is unset (or set to `null`) while the language server is running, we fall back to the JSON configuration instead of keeping the old deleted `workspace/configuration`.
- Loading branch information
Showing
3 changed files
with
91 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters