File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
10
10
@hookimpl
11
- def pylsp_references (document , position , exclude_declaration = False ):
11
+ def pylsp_references (document , position , exclude_declaration ):
12
12
code_position = _utils .position_to_jedi_linecolumn (document , position )
13
13
usages = document .jedi_script ().get_references (** code_position )
14
14
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def test_references(tmp_workspace): # pylint: disable=redefined-outer-name
42
42
DOC1_URI = uris .from_fs_path (os .path .join (tmp_workspace .root_path , DOC1_NAME ))
43
43
doc1 = Document (DOC1_URI , tmp_workspace )
44
44
45
- refs = pylsp_references (doc1 , position )
45
+ refs = pylsp_references (doc1 , position , exclude_declaration = False )
46
46
47
47
# Definition, the import and the instantiation
48
48
assert len (refs ) == 3
@@ -72,7 +72,7 @@ def test_references_builtin(tmp_workspace): # pylint: disable=redefined-outer-n
72
72
doc2_uri = uris .from_fs_path (os .path .join (str (tmp_workspace .root_path ), DOC2_NAME ))
73
73
doc2 = Document (doc2_uri , tmp_workspace )
74
74
75
- refs = pylsp_references (doc2 , position )
75
+ refs = pylsp_references (doc2 , position , exclude_declaration = False )
76
76
assert len (refs ) >= 1
77
77
78
78
expected = {
You can’t perform that action at this time.
0 commit comments