-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable EnC diagnostics in LSP #54500
Enable EnC diagnostics in LSP #54500
Conversation
Thought that might be the case. We're probably serializing things differently |
return _lazyCompileTimeSolution; | ||
|
||
// Only re-use when the lazy solution is from the same branch as the requested solution. | ||
if (_lazyCompileTimeSolution.BranchId == designTimeSolution.BranchId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that seems reasonable, currently it ends up flip-flopping depending on how the requests come in. I'll have one cached snapshot for the primary branch and another item cached for a different branch (note that the branchId for the LSP solution changes on every text change since we fork from the workspace each time)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmat updated to include a cache for the primary branch as well as another snapshot cache for forked requests
5f56712
to
96c8859
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging to unblock insertion. |
Adds support for EnC diagnostics via LSP
Note that there seems to still be an issue on the Razor side with squiggle color (I verified we are returning the appropriate EnC tag for Razor diagnostics) cc @NTaylorMullen