src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/_getLinks
class TerminalInstance:	private async _getLinks(): Promise<IDetectedLinks | undefined> {
		if (!this.areLinksReady || !this._linkManager) {
			throw new Error('terminal links are not ready, cannot generate link quick pick');
		}
		if (!this.xterm) {
			throw new Error('no xterm');
		}
		return this._linkManager.getLinks();
	}