Interface TextEditorsMain
Methods
$registerTextEditorDecorationType
$removeTextEditorDecorationType
- $removeTextEditorDecorationType(key: string): void
$saveAll
- $saveAll(includeUntitled?: boolean): Promise<boolean>
Parameters
Optional includeUntitled: boolean
Returns Promise<boolean>
$tryApplyEdits
Parameters
id: string
modelVersionId: number
Returns Promise<boolean>
$tryApplyWorkspaceEdit
Parameters
Returns Promise<boolean>
$tryHideEditor
- $tryHideEditor(id: string): Promise<void>
Parameters
Returns Promise<void>
$tryInsertSnippet
- $tryInsertSnippet(id: string, template: string, selections: Range[], opts: UndoStopOptions): Promise<boolean>
Parameters
id: string
template: string
selections: Range[]
Returns Promise<boolean>
$tryRevealRange
Parameters
Returns Promise<void>
$trySetDecorations
- $trySetDecorations(id: string, key: string, ranges: DecorationOptions[]): Promise<void>
Parameters
Returns Promise<void>
$trySetDecorationsFast
- $trySetDecorationsFast(id: string, key: string, ranges: number[]): Promise<void>
Parameters
id: string
key: string
ranges: number[]
Returns Promise<void>
$trySetOptions
Parameters
Returns Promise<void>
$trySetSelections
- $trySetSelections(id: string, selections: Selection[]): Promise<void>
Parameters
Returns Promise<void>
$tryShowTextDocument
Parameters
Returns Promise<void>