From c431c455f379b648c6d4fdd3219efd8326eb3e2b Mon Sep 17 00:00:00 2001 From: spebl Date: Fri, 29 Dec 2023 11:30:05 -0800 Subject: [PATCH] re-enable extract to free function for class member functions --- .../src/LanguageServer/Providers/codeActionProvider.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Extension/src/LanguageServer/Providers/codeActionProvider.ts b/Extension/src/LanguageServer/Providers/codeActionProvider.ts index 505b5171a4..1956e5e35a 100644 --- a/Extension/src/LanguageServer/Providers/codeActionProvider.ts +++ b/Extension/src/LanguageServer/Providers/codeActionProvider.ts @@ -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; }