We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3368b4 commit 3ce17bdCopy full SHA for 3ce17bd
pyls/plugins/highlight.py
@@ -1,6 +1,6 @@
1
# Copyright 2017 Palantir Technologies, Inc.
2
import logging
3
-from pyls import hookimpl, lsp, uris
+from pyls import hookimpl, lsp
4
5
log = logging.getLogger(__name__)
6
@@ -13,7 +13,7 @@ def is_valid(definition):
13
return definition.line is not None and definition.column is not None
14
15
def local_to_document(definition):
16
- return not definition.module_path or uris.uri_with(document.uri, path=definition.module_path) == document.uri
+ return not definition.module_path or definition.module_path == document.path
17
18
return [{
19
'range': {
0 commit comments