Skip to content

Commit cbd00af

Browse files
committed
Better error message for missing language id mapping
1 parent 210bc6a commit cbd00af

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
@@ -4365,7 +4365,9 @@ Applies on type formatting."
43654365
(s-matches? mode-or-pattern (buffer-file-name))) language)
43664366
((eq mode-or-pattern major-mode) language))))
43674367
cl-rest)
4368-
(lsp-warn "Unable to calculate the languageId for current buffer. Take a look at lsp-language-id-configuration.")))
4368+
(lsp-warn "Unable to calculate the languageId for buffer `%s'. Take a look at `lsp-language-id-configuration'. The `major-mode' is %s"
4369+
(buffer-name)
4370+
major-mode)))
43694371

43704372
(defun lsp-activate-on (&rest languages)
43714373
"Returns language activation function.

0 commit comments

Comments
 (0)