Skip to content

Commit 48599a0

Browse files
Gei0ryyoncho
authored andcommitted
On windows, downcase filesystem paths (#227)
* On windows, downcase filesystem paths Fix for #226 and possibly emacs-lsp/lsp-mode#343 * Renamed function
1 parent f9ff951 commit 48599a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lsp-ui-flycheck.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ CALLBACK is the status callback passed by Flycheck."
179179
;; Turn all errors from lsp-diagnostics for the current buffer into
180180
;; flycheck-error objects and pass them immediately to the callback
181181
(let ((errors))
182-
(dolist (diag (or (gethash buffer-file-name (lsp-diagnostics))
183-
(gethash (file-truename buffer-file-name) (lsp-diagnostics))))
182+
(dolist (diag (or
183+
(gethash (lsp--fix-path-casing buffer-file-name)
184+
(lsp-diagnostics))
185+
(gethash (lsp--fix-path-casing (file-truename buffer-file-name))
186+
(lsp-diagnostics))))
184187
(push (flycheck-error-new
185188
:buffer (current-buffer)
186189
:checker checker

0 commit comments

Comments
 (0)