src/vs/workbench/contrib/terminal/browser/terminalInstanceService.ts/TerminalInstanceService/getBackend
class TerminalInstanceService:	async getBackend(remoteAuthority?: string): Promise<ITerminalBackend | undefined> {
		let backend = Registry.as<ITerminalBackendRegistry>(TerminalExtensions.Backend).getTerminalBackend(remoteAuthority);
		if (!backend) {
			// Ensure all backends are initialized and try again
			await this._lifecycleService.when(LifecyclePhase.Restored);
			backend = Registry.as<ITerminalBackendRegistry>(TerminalExtensions.Backend).getTerminalBackend(remoteAuthority);
		}
		return backend;
	}