-
Notifications
You must be signed in to change notification settings - Fork 785
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
Fix solution reload and config change issues #3025
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ec3f692
fix config change
fe086b3
Fix configuration changes
2dbbfd8
Fix colorization cache for changing defines
9bd99c0
fix config switching
6f593bb
add manual test cases
1e84061
Fix test
ccc9e47
minor nit
4b62d41
use correct reference count
b9d6ffa
cleanup decrement logic
c42c2ff
fix build
6285d37
Update CompileOps.fs
dsyme 091110d
adjust unit tests mocks
dsyme fa04449
adjust unit tests mocks
dsyme 9af9916
fix test
dsyme 7b462e6
add new misc project test
dsyme 17fce3a
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme e2d7a58
do ComputeSourcesAndFlags later
dsyme c3c1ac0
do ComputeSourcesAndFlags once
dsyme a980328
variations
dsyme f475386
keep dialog open
dsyme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,12 @@ namespace Internal.Utilities.Collections | |
|
||
/// Simple aging lookup table. When a member is accessed it's | ||
/// moved to the top of the list and when there are too many elements | ||
/// the least-recently-accessed element falls of the end. | ||
/// the least-recently-accessed element falls of the end. | ||
/// | ||
/// - areSimilar: Keep at most once association for two similar keys (as given by areSimilar) | ||
type internal AgedLookup<'Token, 'Key, 'Value when 'Value : not struct> = | ||
new : keepStrongly:int | ||
* areSame:('Key * 'Key -> bool) | ||
* areSimilar:('Key * 'Key -> bool) | ||
* ?requiredToKeep:('Value -> bool) | ||
* ?onStrongDiscard : ('Value -> unit) // this may only be set if keepTotal=keepStrongly, i.e. not weak entries | ||
* ?keepMax: int | ||
|
@@ -40,25 +42,36 @@ namespace Internal.Utilities.Collections | |
/// threads seeing different live sets of cached items, and may result in the onDiscard action | ||
/// being called multiple times. In practice this means the collection is only safe for concurrent | ||
/// access if there is no discard action to execute. | ||
/// | ||
/// - areSimilar: Keep at most once association for two similar keys (as given by areSimilar) | ||
type internal MruCache<'Token, 'Key,'Value when 'Value : not struct> = | ||
new : keepStrongly:int | ||
* areSame:('Key * 'Key -> bool) | ||
* ?isStillValid:('Key * 'Value -> bool) | ||
* ?areSameForSubsumption:('Key * 'Key -> bool) | ||
* ?areSimilar:('Key * 'Key -> bool) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A XML Doc comment would be great here explaining what "similarity" means here and what it will be used for. |
||
* ?requiredToKeep:('Value -> bool) | ||
* ?onDiscard:('Value -> unit) | ||
* ?keepMax:int | ||
-> MruCache<'Token,'Key,'Value> | ||
|
||
/// Clear out the cache. | ||
member Clear : 'Token -> unit | ||
/// Get the value for the given key or <c>None</c> if not already available. | ||
|
||
/// Get the similar (subsumable) value for the given key or <c>None</c> if not already available. | ||
member ContainsSimilarKey : 'Token * key:'Key -> bool | ||
|
||
/// Get the value for the given key or <c>None</c> if not still valid. | ||
member TryGetAny : 'Token * key:'Key -> 'Value option | ||
/// Get the value for the given key or None if not already available | ||
|
||
/// Get the value for the given key or None, but only if entry is still valid | ||
member TryGet : 'Token * key:'Key -> 'Value option | ||
|
||
/// Remove the given value from the mru cache. | ||
member Remove : 'Token * key:'Key -> unit | ||
member RemoveAnySimilar : 'Token * key:'Key -> unit | ||
|
||
/// Set the given key. | ||
member Set : 'Token * key:'Key * value:'Value -> unit | ||
|
||
/// Resize | ||
member Resize : 'Token * keepStrongly: int * ?keepMax : int -> unit | ||
|
||
|
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
This is just renaming arguments for consistency