Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion clients/lsp-trunk.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"Check if the file exists in a workspace that has a .trunk/trunk.yaml"
(let ((dir (file-name-directory filename))
(trunk-file ".trunk/trunk.yaml"))
(locate-dominating-file dir trunk-file)))
(when dir
(locate-dominating-file dir trunk-file))))

(defun lsp-trunk-check-disable (command)
"Disable a linter in your repo."
Expand Down