Skip to content

Commit

Permalink
Exclude rootless workspace from initialize progress
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Oct 21, 2024
1 parent a8fafd5 commit cadb18b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/groovy/nextflow/lsp/NextflowLanguageServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ public void didChangeConfiguration(DidChangeConfigurationParams params) {
progressBegin(progressToken, "Initializing workspace...");

var count = 0;
var total = workspaceRoots.keySet().size();
var total = workspaceRoots.keySet().size() - 1;
for( var name : workspaceRoots.keySet() ) {
if( DEFAULT_WORKSPACE_FOLDER_NAME.equals(name) )
continue;
var progressMessage = String.format("Initializing workspace: %s (%d / %d)", name, count + 1, total);
progressUpdate(progressToken, progressMessage, count * 100 / total);
count++;
Expand Down

0 comments on commit cadb18b

Please sign in to comment.