提交 87e0eeda 编写于 作者: C CyrusNajmabadi

Search for nuget packages in the remote workspace.

上级 17b8c33c
......@@ -147,7 +147,7 @@ protected AbstractAddImportFeatureService()
// things like the Interactive workspace as this will cause us to
// create expensive bk-trees which we won't even be able to save for
// future use.
if (!IsHostOrTestWorkspace(project))
if (!IsHostOrTestOrRemoteWorkspace(project))
{
return ImmutableArray<Reference>.Empty;
}
......@@ -156,10 +156,11 @@ protected AbstractAddImportFeatureService()
return fuzzyReferences;
}
private static bool IsHostOrTestWorkspace(Project project)
private static bool IsHostOrTestOrRemoteWorkspace(Project project)
{
return project.Solution.Workspace.Kind == WorkspaceKind.Host ||
project.Solution.Workspace.Kind == WorkspaceKind.Test;
project.Solution.Workspace.Kind == WorkspaceKind.Test ||
project.Solution.Workspace.Kind == WorkspaceKind.RemoteWorkspace;
}
private async Task<ImmutableArray<Reference>> FindResultsAsync(
......@@ -178,7 +179,7 @@ private static bool IsHostOrTestWorkspace(Project project)
// things like the Interactive workspace as we can't even add project
// references to the interactive window. We could consider adding metadata
// references with #r in the future.
if (IsHostOrTestWorkspace(project))
if (IsHostOrTestOrRemoteWorkspace(project))
{
// Now search unreferenced projects, and see if they have any source symbols that match
// the search string.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册