Theia API Documentation v1.77.0
    Preparing search index...

    Implements

    Index
    editorPreferences: EditorPreferences
    • Applies all code actions that should be run on save for the given model and language identifier. This is a convenience method that retrieves all on-save code actions and applies them.

      Parameters

      • model: ITextModel

        The text model to apply code actions to

      • languageId: string

        The language identifier for preference lookup

      • uri: string

        The URI string for preference scoping

      • token: CancellationToken

        Cancellation token

      Returns Promise<void>

    • Gets all code actions that should be applied on save for the given model and language identifier.

      Parameters

      • model: ITextModel

        The text model to get code actions for

      • languageId: string

        The language identifier for preference lookup

      • uri: string

        The URI string for preference scoping

      • token: CancellationToken

        Cancellation token

      Returns Promise<CodeActionSet[] | undefined>

      Array of code action sets to apply, or undefined if no actions should be applied