Implements

Constructors

Properties

_changeResource?: ConfigurableMutableReferenceResource
_initializationPromise: undefined | Promise<void>
_initialized: boolean = false
_originalContent: undefined | string
_readOnlyResource?: ConfigurableMutableReferenceResource
_state: undefined | "pending" | "applied" | "stale"
_targetStateWithCodeActions: undefined | string
changeSetFileService: ChangeSetFileService
codeActionDeferred?: Deferred<string>
codeActionService: MonacoCodeActionService
editorPreferences: EditorPreferences
elementProps: ChangeSetElementArgs
fileService: FileService
fileSystemPreferences: FileSystemPreferences
inMemoryResources: ConfigurableInMemoryResources
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

    • Optional contents: string

    Returns Promise<void>

  • Applies formatting preferences like format on save, trim trailing whitespace, and insert final newline.

    Parameters

    • model: MonacoEditorModel
    • languageId: string
    • uriStr: string

    Returns Promise<void>