// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingRoslyn.Utilities;
...
...
@@ -31,6 +30,11 @@ public RemoteHostClientService(Workspace workspace)
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingSystem.Linq;
usingMicrosoft.CodeAnalysis.Options;
namespaceMicrosoft.CodeAnalysis.Remote
...
...
@@ -25,6 +23,17 @@ public static bool ShouldComputeIndex(Workspace workspace)
caseWorkspaceKind.RemoteWorkspace:
// Always compute indices in the remote workspace.
returntrue;
caseWorkspaceKind.Host:
caseWorkspaceKind.MSBuild:
// Compute indices in the host workspace when OOP is disabled.