Skip to content

Commit

Permalink
Merge pull request #42660 from mindula/fix-42654
Browse files Browse the repository at this point in the history
[Master] Remove the message shown during package indexing
  • Loading branch information
nipunayf authored Apr 30, 2024
2 parents 3f05eb0 + b5a51b3 commit 05b0fcd
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -121,9 +119,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);
Expand Down Expand Up @@ -195,7 +190,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!");
Expand Down

0 comments on commit 05b0fcd

Please sign in to comment.