Skip to content

Commit d230f9c

Browse files
committed
Improve lsp-workspace-root
1 parent 882cccf commit d230f9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-mode.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,8 @@ Applies on type formatting."
40624062
(->> (lsp-session)
40634063
(lsp-session-folders)
40644064
(--first (and (lsp--files-same-host it file-name)
4065-
(f-ancestor-of? it file-name))))))
4065+
(or (f-ancestor-of? it file-name)
4066+
(string= it file-name)))))))
40664067

40674068
(defun lsp-on-revert ()
40684069
"Executed when a file is reverted.

0 commit comments

Comments
 (0)