Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use variable watcher with lsp-defcustom to support local variables. #4349

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

brownts
Copy link
Contributor

@brownts brownts commented Feb 27, 2024

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.

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.
@brownts
Copy link
Contributor Author

brownts commented Apr 6, 2024

Ping @yyoncho

@brownts
Copy link
Contributor Author

brownts commented May 11, 2024

@yyoncho or @jcs090218, is there any reason this can't be merged?

This causes problems for Ada when trying to specify the project file in a directory local variable as described in the linked issue.

@brownts
Copy link
Contributor Author

brownts commented Jun 30, 2024

@jcs090218, can you merge this PR? This was reviewed/approved a while ago by @yyoncho, but never merged.

@yyoncho yyoncho merged commit 581ce04 into emacs-lsp:master Jul 1, 2024
11 of 14 checks passed
@jcs090218
Copy link
Member

Sorry, I was a little busy. 😓 Glad Ivan has already merged this! 🚀

@brownts
Copy link
Contributor Author

brownts commented Jul 1, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lsp-defcustom not compatible with setting local variables
3 participants