src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/focus
class TerminalInstance:	focus(force?: boolean): void {
		this._refreshAltBufferContextKey();
		if (!this.xterm) {
			return;
		}
		const selection = window.getSelection();
		if (!selection) {
			return;
		}
		const text = selection.toString();
		if (!text || force) {
			this.xterm.raw.focus();
		}
	}