src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts/EditorEditTask/apply
class EditorEditTask:	override apply(): void {

		// Check that the editor is still for the wanted model. It might have changed in the
		// meantime and that means we cannot use the editor anymore (instead we perform the edit through the model)
		if (!this._canUseEditor()) {
			super.apply();
			return;
		}
		if (this._edits.length > 0) {

			const insertAsSnippet = this._edits.every(edit => edit.insertAsSnippet);
			if (insertAsSnippet) {
				// todo@jrieken what ABOUT EOL?
				performSnippetEdits(this._editor, this._edits.map(edit => ({ range: Range.lift(edit.range!), snippet: edit.text! })));

			} else {
				this._edits = this._edits
					.map(this._transformSnippetStringToInsertText, this) // mixed edits (snippet and normal) -> no snippet mode
					.sort((a, b) => Range.compareRangesUsingStarts(a.range, b.range));
				this._editor.executeEdits('', this._edits);
			}
		}
		if (this._newEol !== undefined) {
			if (this._editor.hasModel()) {
				this._editor.getModel().pushEOL(this._newEol);
			}
		}
	}