diff options
author | João Távora <joaotavora@gmail.com> | 2023-03-01 01:22:15 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2023-03-01 01:22:40 +0000 |
commit | 97a83ff31fa9e3e2455d3168a789649dcd20a635 (patch) | |
tree | 87343af30beb439780c1e66063ce13359326e0f0 /lisp/emacs-lisp | |
parent | 48a0804d10d02c2aa94664e0db8315239950225f (diff) | |
download | emacs-97a83ff31fa9e3e2455d3168a789649dcd20a635.tar.gz emacs-97a83ff31fa9e3e2455d3168a789649dcd20a635.tar.bz2 emacs-97a83ff31fa9e3e2455d3168a789649dcd20a635.zip |
Eglot: fix M-x eglot-show-workspace-configuration (bug#61866)
Now consult .dir-locals.el every time the workspace configuration is
needed:
- workspace/configuration server request
- workspace/didChangeConfiguration signal
- M-x eglot-show-workspace-configuration
The major-mode/hack-dir-local-variables-non-file-buffer trick is used.
When there is more than one, the server connection's "main" major mode
is used to find the relevant .dir-locals.el section.
* lisp/progmodes/eglot.el (eglot--lookup-mode): Fix docstring.
(eglot--connect): Simplify.
(eglot-show-workspace-configuration): Fix.
(eglot--workspace-configuration): Remove.
(eglot--workspace-configuration-plist): Rework.
(eglot-handle-request): Simplify.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions