You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a version of TryGetRecentCheckResultsForFile with project snapshot (dotnet#16720)
* First stab at adding a version of TryGetRecentCheckResultsForFile that takes a snapshot instead of project options
* use version type without defaultof<_> = null
* take sourcetext out of project snapshot, kind of forces us to an async return but let's see if this is acceptable
* format
* - reuse ParseAndCheckFileInProject cache for TryGetRecentCheckResultsForFile
- extend version of ParseAndCheckFileInProject cache with the check sum of the source code
- add test
* format
* cleanup
* use a new LruCache member GetAll to get rid of the dummy version
* cleanup
* Update src/Compiler/Service/TransparentCompiler.fs
Co-authored-by: Petr Pokorny <[email protected]>
* unify key creation
* just use ProjectSnapShot.FileKey
* to have it on record, push a version with "f.Version |> Md5Hasher.toString" as the second part of lastFileKey.Version
* use FileKeyWithExtraFileSnapshotVersion for the ParseAndCheckFileInProject cache
* replace FileSnapShot after edit in Test
* add CustomOperation tryGetRecentCheckResults for tests
* - Make API non-async and don't return hash
- let tests run for background compiler, too
* better fix for commandLineOptions order
* Update src/Compiler/Service/FSharpProjectSnapshot.fs
Co-authored-by: Petr Pokorny <[email protected]>
* Update tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs
Co-authored-by: Petr Pokorny <[email protected]>
* Update tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs
Co-authored-by: Petr Pokorny <[email protected]>
* fix version predicate
* let LruCache.GetAll(key: 'TKey) return a seq instead of a list
* compare signatures in CustomOperation tryGetRecentCheckResults to tighten the tests
---------
Co-authored-by: Petr Pokorny <[email protected]>
0 commit comments