mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
pass and check model version when calling insertSnippet, https://github.com/microsoft/vscode/issues/145727
This commit is contained in:
@@ -466,7 +466,7 @@ export class ExtHostTextEditor {
|
||||
}
|
||||
}
|
||||
}
|
||||
return _proxy.$tryInsertSnippet(id, snippet.value, ranges, options);
|
||||
return _proxy.$tryInsertSnippet(id, document.getValue().version, snippet.value, ranges, options);
|
||||
},
|
||||
setDecorations(decorationType: vscode.TextEditorDecorationType, ranges: Range[] | vscode.DecorationOptions[]): void {
|
||||
const willBeEmpty = (ranges.length === 0);
|
||||
|
||||
Reference in New Issue
Block a user