Interface TextEditorsMain
interface TextEditorsMain { $registerTextEditorDecorationType(key,
options): void; $removeTextEditorDecorationType(key): void; $save(uri): PromiseLike<undefined | UriComponents>; $saveAll(includeUntitled?): Promise<boolean>; $saveAs(uri): PromiseLike<undefined | UriComponents>; $tryApplyEdits(id,
modelVersionId,
edits,
opts): Promise<boolean>; $tryApplyWorkspaceEdit(workspaceEditDto,
metadata?): Promise<boolean>; $tryHideEditor(id): Promise<void>; $tryInsertSnippet(id,
template,
selections,
opts): Promise<boolean>; $tryRevealRange(id,
range,
revealType): Promise<void>; $trySetDecorations(id,
key,
ranges): Promise<void>; $trySetDecorationsFast(id,
key,
ranges): Promise<void>; $trySetOptions(id,
options): Promise<void>; $trySetSelections(id,
selections): Promise<void>; $tryShowTextDocument(uri,
options?): Promise<void>; } Methods
$registerTextEditorDecorationType
- $registerTextEditorDecorationType(key, options): void
Returns void
$removeTextEditorDecorationType
- $removeTextEditorDecorationType(key): void
Returns void
$save
- $save(uri): PromiseLike<undefined | UriComponents>
Returns PromiseLike<undefined | UriComponents>
$saveAll
- $saveAll(includeUntitled?): Promise<boolean>
Parameters
Optional
includeUntitled: boolean
Returns Promise<boolean>
$saveAs
- $saveAs(uri): PromiseLike<undefined | UriComponents>
Returns PromiseLike<undefined | UriComponents>
$tryApplyEdits
- $tryApplyEdits(id, modelVersionId, edits, opts): Promise<boolean>
Returns Promise<boolean>
$tryApplyWorkspaceEdit
- $tryApplyWorkspaceEdit(workspaceEditDto, metadata?): Promise<boolean>
Returns Promise<boolean>
$tryHideEditor
- $tryHideEditor(id): Promise<void>
Returns Promise<void>
$tryInsertSnippet
- $tryInsertSnippet(id, template, selections, opts): Promise<boolean>
Returns Promise<boolean>
$tryRevealRange
- $tryRevealRange(id, range, revealType): Promise<void>
Returns Promise<void>
$trySetDecorations
- $trySetDecorations(id, key, ranges): Promise<void>
Returns Promise<void>
$trySetDecorationsFast
- $trySetDecorationsFast(id, key, ranges): Promise<void>
Parameters
- id: string
- key: string
- ranges: number[]
Returns Promise<void>
$trySetOptions
- $trySetOptions(id, options): Promise<void>
Returns Promise<void>
$trySetSelections
- $trySetSelections(id, selections): Promise<void>
Returns Promise<void>
$tryShowTextDocument
- $tryShowTextDocument(uri, options?): Promise<void>
Returns Promise<void>