src/vs/workbench/contrib/terminal/browser/terminalService.ts/TerminalService/getInstanceFromResource
class TerminalService:	getInstanceFromResource(resource: URI | undefined): ITerminalInstance | undefined {
		if (URI.isUri(resource)) {
			const instanceId = this._getInstanceIdFromUri(resource);
			if (instanceId) {
				return this.getInstanceFromId(instanceId);
			}
		}
		return undefined;
	}