dhall-lang / vscode-dhall-lsp-server

VSCode pluging that provides LSP support for the Dhall programming language
MIT License
17 stars 8 forks source link

Pass client-side configuration on to the server #16

Closed EggBaconAndSpam closed 5 years ago

EggBaconAndSpam commented 5 years ago

The LSP provides two means of passing configuration data to the server:

  1. As part of the Initialize Request (which is the very first message sent to the server) the client can pass arbitrary data in the initializationOptions field.

  2. The protocol specifies didChangeConfiguration messages to to notify the server of changes changes to the configuration data.

This change uses the initializationOptions field to pass the initial configuration and sets up the vscode lsp client to automatically synchronise any changes via 2; this way we will be able to use haskell-lsps InitializeCallbacks mechanism as intended.