Merge the 1.0.0-preview.4 release branch back to main #379
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.
PR Summary
Merge the 1.0.0-preview.4 release branch back to main.
1.0.0-preview.4release.GitHubReleasetask to create the GitHub draft release.Runspaceis available when importing theAIShellmodule and throw otherwise.Runspaceinstance passed to the constructor ofAIShell.Integration.Channelisnull. The constructor is used only in the public static methodCreateSingletonwhich is called fromAIShell.psm1to create a singleton of theChanneltype upon importing theAIShellmodule.AIShell.psm1, we callCreateSingletonwith$host.Runspaceto pass in theRunspaceinstance, and the module's manifest definesPowerShellHostName = 'ConsoleHost', so in theory,$host.Runspaceshould never be null, but that just happened.CompletionPredictormodule loaded from my profile, which attempts to sync with the modules loaded in the default session from a separateRunspace-- somehow, theChannelsingleton got created from that separateRunspaceinstead of the default session -- but I cannot prove it.AIShell.psm1and the constructor ofChanneltype, to make sure that aChannelsingleton can be created only if theRunspaceinstance is available. Related changes are in this commit: a447dee.