File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8514,7 +8514,7 @@ session workspace folder configuration for the server."
8514
8514
(funcall initialization-options-or-fn)
8515
8515
initialization-options-or-fn)))
8516
8516
8517
- (defvar lsp-client-settings (make-hash-table)
8517
+ (defvar lsp-client-settings (make-hash-table :test 'equal )
8518
8518
"For internal use, any external users please use
8519
8519
`lsp-register-custom-settings' function instead")
8520
8520
Original file line number Diff line number Diff line change 175
175
" textDocument/hover" )))
176
176
2 )))
177
177
178
+ (ert-deftest lsp-test--register-custom-settings-override ()
179
+ " Test that custom settings can be overridden."
180
+ (clrhash lsp-client-settings)
181
+ (lsp-register-custom-settings '((" foo" " original value" )))
182
+ (lsp-register-custom-settings '((" foo" " new value" )))
183
+ (should (equal (gethash " foo" lsp-client-settings) '(" new value" ))))
184
+
185
+
186
+
178
187
; ;; lsp-mode-test.el ends here
You can’t perform that action at this time.
0 commit comments