Skip to content

Refactor runspace creation to enable more design improvements #467

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

Merged
merged 7 commits into from
May 25, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented May 24, 2017

This change kicks off a larger refactoring of how PowerShell Editor Services is initialized. The goal here is to move toward a more granular interface design which can be exposed as an extensibility API. I'll be working toward this incrementally over the next few releases.

@daviwil daviwil added this to the 1.2.0 milestone May 24, 2017
daviwil added 6 commits May 24, 2017 16:43
This change is the first step toward moving runspace and feature
creation to the host's entry point so that it can be more configurable.
The creation of EditorSession is now handled by the EditorServicesHost.
This is the start of further refactoring so expect more changes.
This change moves the creation of PowerShellContext instances outside of
the EditorSession class so that runspace creation and configuration can
be managed at the host layer.
This change moves runspace creation outside of PowerShellContext so that
the runspace can be configured more easily at the host level.  It also
changes the relationship between the ConsoleServicePSHost and
ConsoleService so that the latter now gets created by the former.  This
is leading up to a change where the behavior of these two classes will
be merged into the PSHost implementation.
This change removes the try/catch from Start-EditorServicesHost so that
any initialization errors get written directly instead of wrapped in
a less effective form of output.
@daviwil daviwil force-pushed the runspace-creation branch from d948fdc to 28233de Compare May 24, 2017 23:44
@daviwil daviwil merged commit 420d747 into PowerShell:master May 25, 2017
@daviwil daviwil deleted the runspace-creation branch May 25, 2017 00:02
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants