Skip to content

Commit e41d27d

Browse files
committed
Use file extension on breadcrumb
1 parent f23d979 commit e41d27d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lsp-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,11 +2144,13 @@ The `:global' workspace is global one.")
21442144
(defun lsp--headerline-dirs-until-root (root-path path)
21452145
"Find recursively the folders until the project ROOT-PATH.
21462146
PATH is the current folder to be checked."
2147-
(let ((cur-path (list (f-base path))))
2147+
(let ((cur-path (list (f-filename path))))
21482148
(if (lsp-f-same? root-path (lsp-f-parent path))
21492149
cur-path
21502150
(append (lsp--headerline-dirs-until-root root-path (lsp-f-parent path)) cur-path))))
21512151

2152+
(lsp--headerline-dirs-until-root (lsp--suggest-project-root) (buffer-file-name))
2153+
21522154
(defun lsp--headerline-breadcrumb-build-prefix-string ()
21532155
"Build the prefix for breadcrumb."
21542156
(seq-reduce (lambda (last-dirs next-dir)

0 commit comments

Comments
 (0)