提交 23f9e85d 编写于 作者: S Sam Harwell

Fix exception message for GetRequiredService

上级 063a86db
......@@ -34,7 +34,7 @@ public abstract class HostLanguageServices
var service = GetService<TLanguageService>();
if (service == null)
{
throw new InvalidOperationException(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace);
throw new InvalidOperationException(string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace, typeof(TLanguageService)));
}
return service;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册