Skip to content

Commit

Permalink
Merge pull request #1336 from julia-vscode/fix-stale-testitem-detection
Browse files Browse the repository at this point in the history
Fix stale test item detection
  • Loading branch information
davidanthoff authored Dec 19, 2024
2 parents fc1432a + e5e2a04 commit 236009f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ JSONRPC = "1.1"
JuliaFormatter = "0.20.0, 0.21, 0.22, 0.23, 1"
PrecompileTools = "1"
StaticLint = "8.0"
JuliaWorkspaces = "4.6"
JuliaWorkspaces = "4.7"
SymbolServer = "8"
Tokenize = "0.5.10"
URIs = "1.3"
Expand Down
4 changes: 2 additions & 2 deletions src/requests/textdocument.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ function publish_tests(server::LanguageServerInstance)
testitems_results = JuliaWorkspaces.get_test_items(server.workspace, uri)
st = JuliaWorkspaces.get_text_file(server.workspace, uri).content

testitems = TestItemDetail[TestItemDetail(i.id, i.name, Range(st, i.range), st.content[i.code_range], Range(st, i.code_range), i.option_default_imports, string.(i.option_tags), string.(i.option_setup)) for i in testitems_results.testitems]
testsetups= TestSetupDetail[TestSetupDetail(string(i.name), string(i.kind), Range(st, i.range), st.content[i.code_range], Range(st, i.code_range), ) for i in testitems_results.testsetups]
testitems = TestItemDetail[TestItemDetail(i.id, i.name, Range(st, i.range), i.code, Range(st, i.code_range), i.option_default_imports, string.(i.option_tags), string.(i.option_setup)) for i in testitems_results.testitems]
testsetups= TestSetupDetail[TestSetupDetail(string(i.name), string(i.kind), Range(st, i.range), i.code, Range(st, i.code_range), ) for i in testitems_results.testsetups]
testerrors = TestErrorDetail[TestErrorDetail(te.id, te.name, Range(st, te.range), te.message) for te in testitems_results.testerrors]

version = get(server._open_file_versions, uri, missing)
Expand Down

0 comments on commit 236009f

Please sign in to comment.