src/vs/editor/contrib/snippet/browser/snippetController2.ts/performSnippetEdit
export function performSnippetEdit(editor: ICodeEditor, snippet: string, selections: ISelection[]): boolean {
	const controller = SnippetController2.get(editor);
	if (!controller) {
		return false;
	}
	editor.focus();
	editor.setSelections(selections ?? []);
	controller.insert(snippet);
	return controller.isInSnippet();
}