Skip to content

Commit

Permalink
Merge pull request #1055 from fuyu0425/master
Browse files Browse the repository at this point in the history
fix when dir-local-find-file return string first time
  • Loading branch information
manateelazycat authored Oct 3, 2024
2 parents cdeb496 + 4109bb6 commit de05092
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,10 @@ So we build this macro to restore postion after code format."
;; Fetch project root path by `lsp-bridge-get-project-path-by-filepath' if it set by user.
(funcall lsp-bridge-get-project-path-by-filepath filename)
;; Otherwise try to search up `.dir-locals.el' file
(car (dir-locals-find-file filename))))
(let ((result (dir-locals-find-file filename)))
(if (consp result)
(car result)
result))))

(defun lsp-bridge--get-language-id-func (project-path file-path server-name extension-name)
(if lsp-bridge-get-language-id
Expand Down

0 comments on commit de05092

Please sign in to comment.