VS analyses with respect to saved files, not live buffers #5915
Labels
Area-LangService-Diagnostics
FCS code analysis, diagnostics, red squigglies
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Repro steps:
let say () = ()
.Program.fs
is not giving an error, which it should (this is a bug).File1.fs
.The main problem is in FCS, but changes may be required in VS also.
FCS does receive the current text from text buffers, but when other files are parsed and type checked, it doesn't take into account files it depends on are invalidated because we rely on timestamps when a file was last wrote. This is the reason why we have issues with rename when editing a file but not saving.
Imagine we fixed the problem in FCS, we still need to make changes in our VS tooling to pass this information along most likely.
The fix for this might not be easy, but an effective start would probably be a way to pass stamps from VS to FCS on documents like we do for projects.
The text was updated successfully, but these errors were encountered: