src/vs/editor/browser/controller/textAreaInput.ts/TextAreaInput/_setAndWriteTextAreaState
class TextAreaInput:	private _setAndWriteTextAreaState(reason: string, textAreaState: TextAreaState): void {
		if (!this._hasFocus) {
			textAreaState = textAreaState.collapseSelection();
		}

		textAreaState.writeToTextArea(reason, this._textArea, this._hasFocus);
		this._textAreaState = textAreaState;
	}