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 451ba91 commit 8081c73Copy full SHA for 8081c73
lua/neotest-vstest/dotnet_utils.lua
@@ -146,12 +146,17 @@ function dotnet_utils.get_proj_info(path)
146
end
147
148
149
- local semaphore
150
-
151
if not proj_file then
152
return nil
153
154
+ --- Simple check before acquiring the semaphore to avoid unnecessary waits.
+ if proj_info_cache[proj_file] then
155
+ return proj_info_cache[proj_file]
156
+ end
157
+
158
+ local semaphore
159
160
if project_semaphore[proj_file] then
161
semaphore = project_semaphore[proj_file]
162
else
0 commit comments