src/vs/editor/contrib/snippet/browser/snippetController2.ts/performSnippetEdit
export function performSnippetEdit(editor: ICodeEditor, edit: SnippetTextEdit) {
	const controller = SnippetController2.get(editor);
	if (!controller) {
		return false;
	}
	editor.setSelection(edit.range);
	controller.insert(edit.snippet);
	return controller.isInSnippet();
}