| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
What is a design intention - runspaces is boundaries of visibility of c# types, ps classes, objects, modules? |
Sorry, something went wrong.
|
PowerShell class is visible only in the scope where it's defined and the child scopes of that scope. It's a scope thing, just like you define a function. |
Sorry, something went wrong.
|
Actually, Ilya (@iSazonov) brings up a good point and makes me believe this should be included in rc.1. If people started to depend on the wrong behavior, it will be much worse to break it in 7.1.0. |
Sorry, something went wrong.
|
🎉v7.0.0-rc.1 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Fix #9313
The root problem is that a scope is holding on the shared default TypeResolutionState object when there is no PowerShell class defined in the parent chain of the scope, and then the TypeResolutionState object is used as a key to cache the found type.
A scope should not hold on to the default TypeResolutionState object, but should always refer to the parent's TypeResolutionState object when no PowerShell class defined in itself. When a PowerShell class is defined in a scope, a new TypeResolutionState will be created for the specific scope.
PR Context
PR Checklist