@@ -236,9 +236,7 @@ public void processLanguageServers(@NotNull PsiFile file,
236
236
return ;
237
237
}
238
238
for (var startedServer : startedServers ) {
239
- if (ServerStatus .started .equals (startedServer .getServerStatus ())) {
240
- processor .accept (startedServer );
241
- }
239
+ processor .accept (startedServer );
242
240
}
243
241
}
244
242
@@ -293,7 +291,7 @@ public void processLanguageServers(@NotNull PsiFile file,
293
291
@ Nullable LanguageServerDefinition matchServerDefinition ) {
294
292
// Collect started (or not) language servers which matches the given file.
295
293
CompletableFuture <Collection <LanguageServerWrapper >> matchedServers = getMatchedLanguageServersWrappers (psiFile , matchServerDefinition , beforeStartingServerFilter );
296
- var matchedServersNow = matchedServers .getNow (Collections .emptyList ());
294
+ var matchedServersNow = matchedServers .getNow (Collections .emptyList ());
297
295
if (matchedServers .isDone () && matchedServersNow .isEmpty ()) {
298
296
// None language servers matches the given file
299
297
return CompletableFuture .completedFuture (Collections .emptyList ());
@@ -364,7 +362,7 @@ private static Map<LanguageServerWrapper, LanguageServerWrapper.LSPFileConnectio
364
362
if (uri != null && !ls .isConnectedTo (uri )) {
365
363
// The file is not connected to the current language server
366
364
// Get the required information for the didOpen (text and languageId) which requires a ReadAction.
367
- if (document != null ) {
365
+ if (document != null ) {
368
366
if (connectionFileInfo == null ) {
369
367
connectionFileInfo = new HashMap <>();
370
368
}
@@ -431,7 +429,7 @@ private CompletableFuture<Collection<LanguageServerWrapper>> getMatchedLanguageS
431
429
/**
432
430
* Get or create a language server wrapper for the given server definitions and add then to the given matched servers.
433
431
*
434
- * @param psiFile the file.
432
+ * @param psiFile the file.
435
433
* @param serverDefinitions the server definitions.
436
434
* @param matchedServers the list to update with get/created language server.
437
435
* @param beforeStartingServerFilter
@@ -504,7 +502,7 @@ public CompletableFuture<Set<LanguageServerDefinition>> getAsyncMatched() {
504
502
/**
505
503
* Returns the matched language server definitions for the given file.
506
504
*
507
- * @param psiFile the file.
505
+ * @param psiFile the file.
508
506
* @param ignoreMatch true if {@link DocumentMatcher} must be ignored when mapping matches the given file and false otherwise.
509
507
* @return the matched language server definitions for the given file.
510
508
*/
0 commit comments