]> git.eshelyaron.com Git - emacs.git/commit
Add simple support for workspacefolders
authorFelicián Németh <felician.nemeth@gmail.com>
Sun, 20 Mar 2022 08:50:15 +0000 (09:50 +0100)
committerFelicián Németh <felician.nemeth@gmail.com>
Sun, 20 Mar 2022 16:53:21 +0000 (17:53 +0100)
commita38ce8b28fef2f50263d827aedb3394b795dac56
treef06284f4a1624175da7d5bb2d529a4e5b1eede25
parent6dba74d8cb7e0172641ac6fdd7dfcd80bd22a1c4
Add simple support for workspacefolders

Close https://github.com/joaotavora/eglot/issues/893.

Clients can support workspaceFolders since LSP 3.6.  rootUri and
rootPath are deprecated.  Dynamic changes in folders are not
supported, i.e., this patch does not implement
workspace/didChangeWorkspaceFolders.

* eglot.el (eglot-client-capabilities): Add capability
`workspaceFolders'.
(eglot-workspace-folders): New cl-defgeneric.
(eglot--connect): Add workspaceFolders to initializeParams.
(eglot-handle-request workspace/workspaceFolders): New cl-defmethod.
lisp/progmodes/eglot.el