Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Flycheck to determine a diagnostic end position when needed. (e…
…macs-lsp#4429) When a Language Server doesn't support an end position for a diagnostic (by specifying an end position the same as the start position) Flycheck should be asked to compute the end position using it's `flycheck-highlighting-mode` setting. This is accomplished by passing nil as the end-column to `flycheck-error-new`. This provides consistent behavior between Flymake and Flycheck as the Flymake integration already checks for this condition and uses it's similar functionality (i.e., `flymake-diag-region`) to compute an end position.
- Loading branch information