Skip to content
Closed
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 clang-tools-extra/clangd/ClangdLSPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CodeAction toCodeAction(const ClangdServer::CodeActionResult::Rename &R,
const URIForFile &File) {
CodeAction CA;
CA.title = R.FixMessage;
CA.kind = std::string(CodeAction::REFACTOR_KIND);
CA.kind = std::string(CodeAction::QUICKFIX_KIND);
CA.command.emplace();
CA.command->title = R.FixMessage;
CA.command->command = std::string(ApplyRenameCommand);
Expand Down
3 changes: 2 additions & 1 deletion clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ TEST_F(LSPTest, ClangTidyRename) {
.takeValue()
.getAsArray())[0];

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

Client.expectServerCall("workspace/applyEdit");
Client.call("workspace/executeCommand", RenameCommand);
Expand Down
Loading