Repository navigation
WIP: Adding class based property storage for File and Registry providers. - #7502
Staffan Gustafsson (powercode) wants to merge 2 commits into
Conversation
451c31d to
e04e979
Compare
e04e979 to
e431034
Compare
e431034 to
9a11774
Compare
| { | ||
| FileSystemProviderProperties.GetCodePropertiesTypeData(), | ||
| RegistryProviderProperties.GetCodePropertiesTypeData() | ||
| }; |
There was a problem hiding this comment.
Can we move this in TypesV3_Ps1Xml class?
There was a problem hiding this comment.
For sure - I just hacked it in to get it in the same timing scope as the rest of the types.
There was a problem hiding this comment.
FWIW, there is no longer a good reason to keep TypesV3_Ps1Xml separate from Types_PS1Xml.
The original idea was to make it easy to compare with the ps1xml files from V5, but they've diverged enough at this point that it doesn't matter.
| /// <inheritdoc /> | ||
| protected override bool TrySetCodeProperties(object item, string path) | ||
| { | ||
| if (PSObject.Base(item) is FileSystemInfo fileSystemInfo) |
There was a problem hiding this comment.
Should we enhance and use public enum ProviderCapabilities
There was a problem hiding this comment.
Seems like a good idea!
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically closed because it is stale. If you wish to continue working on the PR, please first update the PR, then reopen it. |
PR Summary
#7501
Using a
ConditionalWeakTableto connect provider objects with objects specially crafted for faster and more efficient storage of the properties that we know beforehand will exist.Adding classes
FileSystemProviderPropertiesandRegistryProviderPropertiesthat stores the properties, and exposes CodeProperty methods, and hooks to update the type system.Adding a new virtual method in ProviderBase where providers can opt in to more efficient storage of properties.
Jason Shirk (@lzybkr) - I'd love if you can find the time to review this!
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests