-
Notifications
You must be signed in to change notification settings - Fork 842
Refresh the check of files when notified by F# analysis engine #1906
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
Conversation
|
|
||
| // The latest component model. This is used to retrieve IDiagnosticAnalyzerService. | ||
| // FSROSLYNTODO: Work out how to make this and the two tables below non-static. | ||
| static let mutable componentModelOpt : IComponentModel option = None |
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.
I'd like someone who understands MEF to go through and remove all these statics please. I don't think adding this one causes any additional problems that aren't already there, but it's still not right. I don't understand anything much about MEF.
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.
I'll try to take a look once this PR is landed
|
Failures on AppVeyor/ The first two are now fixed, the other two I don't understand (unrelated to this checkin, but I just can't repro them, and they only seem to happen on AppVeyor) |
…t#1906) This fixes a large chunk of dotnet#1808. I've tested it by hand. The build still doesn't react to files coming/going in DependencyFiles. I'll adjust the description in dotnet#1808 to make the cases distinct. Basically F# has an analysis engine which tells the UI when to do "foreground" rechecks of files because the checking state has changed. This reacts to those events. See https://fsharp.github.io/FSharp.Compiler.Service/queue.html for some info. When the UI gets the focus on a document, it should also notify the F# engine to start checking that document * fix tests * Fix bridge between backgronud builders * fix test
This fixes a large chunk of #1808. I've tested it by hand.
The build still doesn't react to files coming/going in DependencyFiles. I'll adjust the description in #1808 to make the cases distinct.
Basically F# has an analysis engine which tells the UI when to do "foreground" rechecks of files because the checking state has changed. This reacts to those events. See https://fsharp.github.io/FSharp.Compiler.Service/queue.html for some info.
When the UI gets the focus on a document, it should also notify the F# engine to start checking that document
Perhaps we could eventually let the Roslyn one drive the whole show.