File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments