Skip to content

Commit 2cb6be2

Browse files
[mlir-lsp] Fix window.workDoneProgress capability (#149905)
PR #143449 had an incorrect parser implementation for window.workDoneProgress that actually parsed textDocument.window.workDoneProgress.
1 parent c9cea24 commit 2cb6be2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ bool mlir::lsp::fromJSON(const llvm::json::Value &value,
284284
if (codeAction->getObject("codeActionLiteralSupport"))
285285
result.codeActionStructure = true;
286286
}
287-
if (auto *window = textDocument->getObject("window")) {
288-
if (std::optional<bool> workDoneProgressSupport =
289-
window->getBoolean("workDoneProgress"))
290-
result.workDoneProgress = *workDoneProgressSupport;
291-
}
287+
}
288+
if (auto *window = o->getObject("window")) {
289+
if (std::optional<bool> workDoneProgressSupport =
290+
window->getBoolean("workDoneProgress"))
291+
result.workDoneProgress = *workDoneProgressSupport;
292292
}
293293
return true;
294294
}

0 commit comments

Comments
 (0)