Skip to content

Commit

Permalink
Improve lsp-workspace-root
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho committed Apr 29, 2020
1 parent 882cccf commit d230f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,8 @@ Applies on type formatting."
(->> (lsp-session)
(lsp-session-folders)
(--first (and (lsp--files-same-host it file-name)
(f-ancestor-of? it file-name))))))
(or (f-ancestor-of? it file-name)
(string= it file-name)))))))

(defun lsp-on-revert ()
"Executed when a file is reverted.
Expand Down

0 comments on commit d230f9c

Please sign in to comment.