dotnet / dotnet/project-system
Control language service availability using project capabilities
Open
Feature-Language-Service
Triage-Approved
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
Currently we use `ILanguageServiceHostEnvironment` to control whether the language service should be initialized or not.
https://github.com/dotnet/project-system/blob/fa20f2b023918184524c843a8845726582f7a6bf/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/LanguageServices/LanguageServiceHostEnvironment.cs#L10-L34
Today, we use this interface to prevent the language service from doing redundant work during `devenv /build`.
The current design requires calling code to check this flag. It would be cleaner to control this via project capabilities.
Contributor guide
Assessment
This issue has not been assessed yet.