Skip to content

Commit e10cce2

Browse files
author
git apple-llvm automerger
committed
Merge commit 'c03b58bb091e' from llvm.org/release/21.x into stable/21.x
2 parents 0f09410 + c03b58b commit e10cce2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang-tools-extra/clangd/ClangdLSPServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CodeAction toCodeAction(const ClangdServer::CodeActionResult::Rename &R,
8181
const URIForFile &File) {
8282
CodeAction CA;
8383
CA.title = R.FixMessage;
84-
CA.kind = std::string(CodeAction::REFACTOR_KIND);
84+
CA.kind = std::string(CodeAction::QUICKFIX_KIND);
8585
CA.command.emplace();
8686
CA.command->title = R.FixMessage;
8787
CA.command->command = std::string(ApplyRenameCommand);

clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ TEST_F(LSPTest, ClangTidyRename) {
235235
.takeValue()
236236
.getAsArray())[0];
237237

238-
ASSERT_EQ((*RenameCommand.getAsObject())["title"], "change 'foo' to 'Foo'");
238+
ASSERT_EQ((*RenameCommand.getAsObject())["title"],
239+
"Apply fix: change 'foo' to 'Foo'");
239240

240241
Client.expectServerCall("workspace/applyEdit");
241242
Client.call("workspace/executeCommand", RenameCommand);

0 commit comments

Comments
 (0)