Add GetProjectSnapshotFromScript to FSharpChecker#16735
Merged
psfinaki merged 15 commits intodotnet:mainfrom Feb 23, 2024
Merged
Add GetProjectSnapshotFromScript to FSharpChecker#16735psfinaki merged 15 commits intodotnet:mainfrom
psfinaki merged 15 commits intodotnet:mainfrom
Conversation
Contributor
|
0101
reviewed
Feb 19, 2024
Contributor
0101
left a comment
There was a problem hiding this comment.
Thanks for adding more features to TC!
Are there any tests for GetProjectOptionsFromScript which we could repurpose for this?
Contributor
Author
|
@0101 I've added a bit of a different test. Let me know what you think. |
Contributor
Yeah that's good. I guess it doesn't really exercise all the code paths but it looks like we don't have such tests even for |
0101
reviewed
Feb 20, 2024
0101
reviewed
Feb 22, 2024
psfinaki
approved these changes
Feb 23, 2024
nojaf
added a commit
to nojaf/fsharp
that referenced
this pull request
Feb 28, 2024
* Initial attempt for GetProjectSnapshotFromScript * Add GetProjectSnapshotFromScript to service. * Address feedback from code review. * Assert both return the same results. * Remove old comment * Construct cache key in ComputeScriptClosure * Include stamp * Don't take projectSnapshot as input for ComputeScriptClosure * Add other flags * Add checksum directly. * Remove duplicate checksum * Use ISourceTextNew for Source * Mark API as experimental
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
See rational in #16718.
Checklist
Test cases added
Performance benchmarks added in case of performance changes
Release notes entry updated: