YouCompleteMe/python/ycm
Homu ff76a4ed33 Auto merge of #2602 - micbou:diagnostics-no-location-extent, r=Valloric
[READY] Fix diagnostic highlighting with invalid location extent

ycmd may return a location extent with a starting column of zero (see the test for an example) which is not a valid column (columns are 1-indexed). We should use the location in this case. Also, when the location extent is not valid, we should call `AddDiagnosticSyntaxMatch` with the `is_error` parameter to highlight warnings as such and not as errors (`is_error` is `True` by default).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2602)
<!-- Reviewable:end -->
2017-04-07 05:38:08 +09:00
..
client Merge branch 'master' into fork_master 2017-03-30 20:26:11 +03:00
tests Fix diagnostic highlighting with invalid location extent 2017-04-06 17:53:23 +02:00
__init__.py Fixing python tests broken in rename 2013-05-19 20:06:14 -07:00
base.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
diagnostic_filter.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
diagnostic_interface.py Fix diagnostic highlighting with invalid location extent 2017-04-06 17:53:23 +02:00
omni_completer.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
paths.py Do not cache Python interpreter path 2017-04-02 22:28:59 +02:00
setup.py Add error messages when ycmd crashed 2016-05-02 23:08:32 +02:00
syntax_parse.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
unsafe_thread_pool_executor.py Update flake8 config 2016-03-06 17:39:55 +00:00
vimsupport.py Prioritize errors over warnings on the same line 2017-03-29 12:34:48 +02:00
youcompleteme.py Merge branch 'master' into fork_master 2017-03-30 20:26:11 +03:00