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 c8fb807 commit b34aca4Copy full SHA for b34aca4
src/make_language_server/finders.py
@@ -50,7 +50,7 @@ def capture2uni(
50
:type uri: str
51
:rtype: UNI | None
52
"""
53
- uni = UNI(uri, nodes[0])
+ uni = UNI(nodes[0], uri)
54
return (
55
uni if label == "path" and not os.path.isfile(uni.path) else None
56
)
tests/test_finders.py
@@ -26,5 +26,5 @@ def test_DefinitionFinder() -> None:
26
.children[0]
27
.children[2]
28
29
- result = finder(UNI(file, tree.root_node.children[12].children[0]))
+ result = finder(UNI(tree.root_node.children[12].children[0], file))
30
assert result is True
0 commit comments