src/vs/workbench/contrib/terminal/browser/terminalService.ts/TerminalService/doWithActiveInstance
class TerminalService:	doWithActiveInstance<T>(callback: (terminal: ITerminalInstance) => T): T | void {
		const instance = this.activeInstance;
		if (instance) {
			return callback(instance);
		}
	}