Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom desktop minor mode handler for lsp-deferred
Use lsp-deferred instead of lsp-mode even in the case that lsp-mode appears in the list of minor modes for a file in a user's desktop file by adding the buffer-local variable lsp--buffer-deferred (which tracks whether a given buffer was started using lsp-deferred) to the variable desktop-locals-to-save so that it is persisted in a user's desktop file, and adding a custom handler to desktop-minor-mode-handlers which uses this persisted variable to determine whether to use lsp-deferred of lsp-mode when re-opening a file from the desktop file.
- Loading branch information