@@ -501,6 +501,14 @@ declare namespace ts {
501501 type GetApplicableRefactorsRequestArgs = FileLocationOrRangeRequestArgs & {
502502 triggerReason?: RefactorTriggerReason;
503503 kind?: string;
504+ /**
505+ * Include refactor actions that require additional arguments to be passed when
506+ * calling 'GetEditsForRefactor'. When true, clients should inspect the
507+ * `isInteractive` property of each returned `RefactorActionInfo`
508+ * and ensure they are able to collect the appropriate arguments for any
509+ * interactive refactor before offering it.
510+ */
511+ includeInteractiveActions?: boolean;
504512 };
505513 type RefactorTriggerReason = "implicit" | "invoked";
506514 /**
@@ -557,6 +565,11 @@ declare namespace ts {
557565 * The hierarchical dotted name of the refactor action.
558566 */
559567 kind?: string;
568+ /**
569+ * Indicates that the action requires additional arguments to be passed
570+ * when calling 'GetEditsForRefactor'.
571+ */
572+ isInteractive?: boolean;
560573 }
561574 interface GetEditsForRefactorRequest extends Request {
562575 command: CommandTypes.GetEditsForRefactor;
@@ -10129,7 +10142,13 @@ declare namespace ts {
1012910142 applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>;
1013010143 /** @deprecated `fileName` will be ignored */
1013110144 applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>;
10132- getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): ApplicableRefactorInfo[];
10145+ /**
10146+ * @param includeInteractiveActions Include refactor actions that require additional arguments to be
10147+ * passed when calling `getEditsForRefactor`. When true, clients should inspect the `isInteractive`
10148+ * property of each returned `RefactorActionInfo` and ensure they are able to collect the appropriate
10149+ * arguments for any interactive action before offering it.
10150+ */
10151+ getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string, includeInteractiveActions?: boolean): ApplicableRefactorInfo[];
1013310152 getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined;
1013410153 organizeImports(args: OrganizeImportsArgs, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
1013510154 getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
@@ -10401,6 +10420,11 @@ declare namespace ts {
1040110420 * The hierarchical dotted name of the refactor action.
1040210421 */
1040310422 kind?: string;
10423+ /**
10424+ * Indicates that the action requires additional arguments to be passed
10425+ * when calling `getEditsForRefactor`.
10426+ */
10427+ isInteractive?: boolean;
1040410428 }
1040510429 /**
1040610430 * A set of edits to make in response to a refactor action, plus an optional
0 commit comments