-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FUSE hook up in VS Code (#11175)
This one might be a _little_ controversial in terms of how I wired the `LanguageServerFeatureOptions` up through the `ProjectSnapshot`, but it's somewhat similar to how it works in cohosting, with `RemoteProjectSnapshot -> RemoteSolutionSnapshot -> SolutionSnapshotManager -> LanguageServerFeatureOptions`. Aside from that aspect of the specific implementation, which you're more than welcome to critique and suggest an alternative to, the fundamental change here is removing `LanguageServerFlags` and using `LanguageServerFeatureOptions` directly. It seems that `LanguageServerFlags` was intended to encapsulate the feature options for the compiler, but since that time they are never actually used by the compiler, and just ended up in a weird spot. They were "flags for the language server", but were only ever initialized in VS. We we essentially ended up with this unnecessary middle-man, that didn't always exist. The `LanguageServerFeatureFlags` on the other hand are always set in VS, VS Code, etc. TL;DR: Now that all of the code for deciding whether to use runtime compilation is entirely on the tooling side, it just makes sense to use the tooling side options class directly.
- Loading branch information
Showing
31 changed files
with
148 additions
and
175 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/LanguageServerFlags.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.