pass and check model version when calling insertSnippet, https://github.com/microsoft/vscode/issues/145727

This commit is contained in:
Johannes
2022-03-25 17:08:55 +01:00
parent ba662a3c92
commit b157c6a2e6
4 changed files with 13 additions and 6 deletions

View File

@@ -252,7 +252,7 @@ export interface MainThreadTextEditorsShape extends IDisposable {
$tryRevealRange(id: string, range: IRange, revealType: TextEditorRevealType): Promise<void>;
$trySetSelections(id: string, selections: ISelection[]): Promise<void>;
$tryApplyEdits(id: string, modelVersionId: number, edits: ISingleEditOperation[], opts: IApplyEditsOptions): Promise<boolean>;
$tryInsertSnippet(id: string, template: string, selections: readonly IRange[], opts: IUndoStopOptions): Promise<boolean>;
$tryInsertSnippet(id: string, modelVersionId: number, template: string, selections: readonly IRange[], opts: IUndoStopOptions): Promise<boolean>;
$getDiffInformation(id: string): Promise<ILineChange[]>;
}