Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/nextflow/lsp/NextflowLanguageServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ private boolean shouldInitialize(LanguageServerConfiguration previous, LanguageS
private void initializeWorkspaces() {
var progress = new ProgressNotification(client, "initialize");
progress.create();
progress.begin("Initializing workspace...");
progress.begin("Initializing", "Initializing workspace...");

var count = 0;
var total = workspaceRoots.keySet().size() - 1;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/nextflow/lsp/util/ProgressNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public void create() {
client.createProgress(new WorkDoneProgressCreateParams(Either.forLeft(token)));
}

public void begin(String message) {
public void begin(String title, String message) {
var progress = new WorkDoneProgressBegin();
progress.setTitle(title);
progress.setMessage(message);
progress.setPercentage(0);
client.notifyProgress(new ProgressParams(Either.forLeft(token), Either.forLeft(progress)));
Expand Down