src/vs/workbench/services/remote/common/abstractRemoteAgentService.ts/RemoteAgentConnection/withChannel
class RemoteAgentConnection:	withChannel<T extends IChannel, R>(channelName: string, callback: (channel: T) => Promise<R>): Promise<R> {
		const channel = this.getChannel<T>(channelName);
		const result = callback(channel);
		return result;
	}