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

    Implements

    Index

    Constructors

    Properties

    _initializationPromise: undefined | Promise<void>
    _initialized: boolean = false
    _state: undefined | "pending" | "applied" | "stale"
    _targetStateWithCodeActions: undefined | string
    changeSetFileService: ChangeSetFileService
    codeActionDeferred?: Deferred<string>
    codeActionService: MonacoCodeActionService
    editorPreferences: EditorPreferences
    elementProps: ChangeSetElementArgs
    fileService: FileService
    fileSystemPreferences: FileSystemPreferences
    monacoTextModelService: MonacoTextModelService
    onDidChange: Event<void> = ...
    onDidChangeEmitter: Emitter<void> = ...
    toDispose: DisposableCollection = ...

    Accessors

    Methods

    • Applies changes using Monaco utilities, including loading the model for the base file URI, setting the value to the intended state, and running code actions on save.

      Parameters

      • Optionalcontents: string

      Returns Promise<void>

    • Gets the original content of the file asynchronously. Ensures initialization is complete before returning the content.

      Returns Promise<undefined | string>