提交 52d9b040 编写于 作者: R Ryan Nowak

Propagate null from RemoteHostClientFactory

上级 7a5d17ed
......@@ -13,7 +13,7 @@ public static async Task<RazorLangaugeServiceClient> CreateAsync(Workspace works
{
var clientFactory = workspace.Services.GetRequiredService<IRemoteHostClientService>();
var client = await clientFactory.GetRemoteHostClientAsync(cancellationToken).ConfigureAwait(false);
return new RazorLangaugeServiceClient(client);
return client == null ? null : new RazorLangaugeServiceClient(client);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册