From df0a6ebd8b1b7ab042a610fbcd09da418ac78dd4 Mon Sep 17 00:00:00 2001 From: Justin Chen <54879025+justschen@users.noreply.github.com> Date: Sun, 21 Apr 2024 23:32:35 -0700 Subject: [PATCH] more inclusive for showing code action previews (#210873) added more labels to show preview --- .../editor/contrib/codeAction/browser/codeActionController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/codeAction/browser/codeActionController.ts b/src/vs/editor/contrib/codeAction/browser/codeActionController.ts index 784be6bebee..c325594629d 100644 --- a/src/vs/editor/contrib/codeAction/browser/codeActionController.ts +++ b/src/vs/editor/contrib/codeAction/browser/codeActionController.ts @@ -301,7 +301,9 @@ export class CodeActionController extends Disposable implements IEditorContribut const refactorKinds = [ CodeActionKind.RefactorExtract, CodeActionKind.RefactorInline, - CodeActionKind.RefactorRewrite + CodeActionKind.RefactorRewrite, + CodeActionKind.RefactorMove, + CodeActionKind.Source ]; canPreview = refactorKinds.some(refactorKind => refactorKind.contains(hierarchicalKind));