From df921a3698ae1f2a21c0eed2b69005eda5a4aa1b Mon Sep 17 00:00:00 2001 From: mindula Date: Tue, 30 Apr 2024 11:35:43 +0530 Subject: [PATCH 1/2] Remove the message shown during package indexing --- .../java/org/ballerinalang/langserver/LSPackageLoader.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 60a3d8823550..43a80846965f 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -121,9 +121,6 @@ public void loadModules(LanguageServerContext context) { if (languageClient == null) { return; } - this.languageClient.showMessage( - new MessageParams(MessageType.Info, "Indexing Ballerina packages: " + - "some completions may not be available until indexing is complete.")); // Initialize progress notification WorkDoneProgressCreateParams workDoneProgressCreateParams = new WorkDoneProgressCreateParams(); workDoneProgressCreateParams.setToken(taskId); @@ -195,7 +192,6 @@ public void loadModules(LanguageServerContext context) { endNotification.setMessage("Initialized Successfully!"); languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), Either.forLeft(endNotification))); - languageClient.showMessage(new MessageParams(MessageType.Info, "Indexing completed successfully.")); }).exceptionally(e -> { WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); endNotification.setMessage("Initialization Failed!"); From b5a51b3b5d28f8fd965035e6f74be9acb921eb71 Mon Sep 17 00:00:00 2001 From: mindula Date: Tue, 30 Apr 2024 14:15:39 +0530 Subject: [PATCH 2/2] Fix checkstyle failures --- .../main/java/org/ballerinalang/langserver/LSPackageLoader.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 43a80846965f..68daa2c7a317 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -40,8 +40,6 @@ import org.ballerinalang.langserver.commons.LanguageServerContext; import org.ballerinalang.langserver.commons.client.ExtendedLanguageClient; import org.ballerinalang.langserver.completions.providers.context.util.ServiceTemplateGenerator; -import org.eclipse.lsp4j.MessageParams; -import org.eclipse.lsp4j.MessageType; import org.eclipse.lsp4j.ProgressParams; import org.eclipse.lsp4j.WorkDoneProgressBegin; import org.eclipse.lsp4j.WorkDoneProgressCreateParams;