[Mlir-commits] [mlir] 2cb6be2 - [mlir-lsp] Fix window.workDoneProgress capability (#149905)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 24 12:03:14 PDT 2025


Author: Lily Brown
Date: 2025-07-24T15:03:10-04:00
New Revision: 2cb6be22867560f76a7f9cfec35d912a37af8e23

URL: https://github.com/llvm/llvm-project/commit/2cb6be22867560f76a7f9cfec35d912a37af8e23
DIFF: https://github.com/llvm/llvm-project/commit/2cb6be22867560f76a7f9cfec35d912a37af8e23.diff

LOG: [mlir-lsp] Fix window.workDoneProgress capability (#149905)

PR #143449 had an incorrect parser implementation for
window.workDoneProgress that actually parsed
textDocument.window.workDoneProgress.

Added: 
    

Modified: 
    mlir/lib/Tools/lsp-server-support/Protocol.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/lsp-server-support/Protocol.cpp b/mlir/lib/Tools/lsp-server-support/Protocol.cpp
index 33cdd2855eff1..98287048355c1 100644
--- a/mlir/lib/Tools/lsp-server-support/Protocol.cpp
+++ b/mlir/lib/Tools/lsp-server-support/Protocol.cpp
@@ -284,11 +284,11 @@ bool mlir::lsp::fromJSON(const llvm::json::Value &value,
       if (codeAction->getObject("codeActionLiteralSupport"))
         result.codeActionStructure = true;
     }
-    if (auto *window = textDocument->getObject("window")) {
-      if (std::optional<bool> workDoneProgressSupport =
-              window->getBoolean("workDoneProgress"))
-        result.workDoneProgress = *workDoneProgressSupport;
-    }
+  }
+  if (auto *window = o->getObject("window")) {
+    if (std::optional<bool> workDoneProgressSupport =
+            window->getBoolean("workDoneProgress"))
+      result.workDoneProgress = *workDoneProgressSupport;
   }
   return true;
 }


        


More information about the Mlir-commits mailing list