Skip to content

Commit

Permalink
re-enable extract to free function for class member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
spebl committed Dec 29, 2023
1 parent d5ffbd8 commit c431c45
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Extension/src/LanguageServer/Providers/codeActionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ export class CodeActionProvider implements vscode.CodeActionProvider {
return;
}
} else if (command.command === "C_Cpp.ExtractToFunction" ||
command.command === "C_Cpp.ExtractToMemberFunction") {
command.command === "C_Cpp.ExtractToMemberFunction" ||
command.command === "C_Cpp.ExtractToFreeFunction") {
codeActionKind = CodeActionProvider.extractToFunctionKind;
} else if (command.command === "C_Cpp.ExtractToFreeFunction") {
// TODO: https://github.com/microsoft/vscode-cpptools/issues/11473 needs to be fixed.
return;
} else if (command.command === "C_Cpp.ExpandSelection") {
codeActionKind = CodeActionProvider.expandSelectionKind;
}
Expand Down

0 comments on commit c431c45

Please sign in to comment.