Skip to content

Commit 00ffbc9

Browse files
committed
perf(language_server): do not request for configuration when all workers are ready (#10897)
1 parent 7d09973 commit 00ffbc9

File tree

1 file changed

+4
-0
lines changed
  • crates/oxc_language_server/src

1 file changed

+4
-0
lines changed

crates/oxc_language_server/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ impl LanguageServer for Backend {
148148
}
149149
}
150150

151+
if needed_configurations.is_empty() {
152+
return;
153+
}
154+
151155
let configurations =
152156
self.request_workspace_configuration(needed_configurations.keys().collect()).await;
153157
for (index, worker) in needed_configurations.values().enumerate() {

0 commit comments

Comments
 (0)