File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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.
21462146PATH 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)
You can’t perform that action at this time.
0 commit comments