@servicenow/sdk - v4.4.1
    Preparing search index...

    Interface RefactorActionInfo

    Represents a single refactoring action - for example, the "Extract Method..." refactor might offer several actions, each corresponding to a surround class or closure to extract into.

    interface RefactorActionInfo {
        description: string;
        isInteractive?: boolean;
        kind?: string;
        name: string;
        notApplicableReason?: string;
        range?: {
            end: { line: number; offset: number };
            start: { line: number; offset: number };
        };
    }
    Index

    Properties

    description: string

    A description of this refactoring action to show to the user. If the parent refactoring is inlined away, this will be the only text shown, so this description should make sense by itself if the parent is inlineable=true

    isInteractive?: boolean

    Indicates that the action requires additional arguments to be passed when calling getEditsForRefactor.

    kind?: string

    The hierarchical dotted name of the refactor action.

    name: string

    The programmatic name of the refactoring action

    notApplicableReason?: string

    A message to show to the user if the refactoring cannot be applied in the current context.

    range?: {
        end: { line: number; offset: number };
        start: { line: number; offset: number };
    }

    Range of code the refactoring will be applied to.