mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 08:15:59 +00:00
Improve waiting logic for cross-file references to be ready
Now waiting only once instead of on each request, hopefully that's enough
This commit is contained in:
1 parent
a066202d02
commit
d4dedd5d84
5 files changed
+32
-22
No files matched your search
@@ -120,6 +120,10 @@ class TestCSharpLanguageServer:
|
||||
"Models/Person.cs" in ref_file for ref_file in ref_files
|
||||
), "Should find reference in Models/Person.cs where Calculator.Subtract is called"
|
||||
|
||||
# check for a second time, since the first call may trigger initialization and change the state of the LS
|
||||
refs_second_call = language_server.request_references(file_path, sel_start["line"], sel_start["character"] + 1)
|
||||
assert refs_second_call == refs, "Second call to request_references should return the same results"
|
||||
|
||||
|
||||
@pytest.mark.csharp
|
||||
class TestCSharpSolutionProjectOpening:
|
||||
|
||||
Reference in new issue
Block a user