Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix None position values in publishDiagnostics message (#753)
For some issues eslint triggers error with no `endLine` and/or `endColumn` defined. In that case the code should use `line` and `column` for the values, respectively. While the code has attempted to do that, it only checked for `null` value for those while eslint actually doesn't even have them set so they are undefined. Fix by checking that value is either null or undefined. This problem causes random exceptions on some LSP clients (for me it triggered in Sublime LSP). Not sure if it affected Vetur. Resolves #752
- Loading branch information