lsp-mode
lsp-mode copied to clipboard
Use variable watcher with lsp-defcustom to support local variables.
When custom variables are set locally using hack-local-variables
, a custom variable's registered setter is not invoked. To address this, a variable watcher is used instead to cause the setter to be invoked when the variable is updated.
Fixes #4337.