Only send LSP config updates when the dict changes

Each LSP connection now stores its configuration dictionary. It is
initially empty (`{}`) and is updated each time the LSP connection is
started. When a change is detected, the workspace/didChangeConfiguration
message is sent to the LSP servers with the updated configuration.
This commit is contained in:
Jon Parise
2018-10-30 15:47:19 -07:00
parent b5a7593577
commit 2ac9e2a29e
4 changed files with 41 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ Before:
\ 'initialized': 0,
\ 'init_request_id': 0,
\ 'init_options': {},
\ 'config': {},
\ 'callback_list': [],
\ 'message_queue': [],
\ 'capabilities_queue': [],