@@ -79,22 +79,15 @@ public class EditorSession
79
79
/// Starts the session using the provided IConsoleHost implementation
80
80
/// for the ConsoleService.
81
81
/// </summary>
82
- /// <param name="hostDetails">
83
- /// Provides details about the host application.
84
- /// </param>
85
- /// <param name="profilePaths">
86
- /// An object containing the profile paths for the session.
87
- /// </param>
88
82
/// <param name="enableConsoleRepl">
89
83
/// Enables a terminal-based REPL for this session.
90
84
/// </param>
91
85
public void StartSession (
92
- HostDetails hostDetails ,
93
- ProfilePaths profilePaths ,
86
+ PowerShellContext powerShellContext ,
94
87
bool enableConsoleRepl )
95
88
{
96
89
// Initialize all services
97
- this . PowerShellContext = new PowerShellContext ( hostDetails , profilePaths , enableConsoleRepl ) ;
90
+ this . PowerShellContext = powerShellContext ;
98
91
this . LanguageService = new LanguageService ( this . PowerShellContext ) ;
99
92
this . ConsoleService = new ConsoleService ( this . PowerShellContext ) ;
100
93
this . ExtensionService = new ExtensionService ( this . PowerShellContext ) ;
@@ -111,22 +104,15 @@ public void StartSession(
111
104
/// Starts a debug-only session using the provided IConsoleHost implementation
112
105
/// for the ConsoleService.
113
106
/// </summary>
114
- /// <param name="hostDetails">
115
- /// Provides details about the host application.
116
- /// </param>
117
- /// <param name="profilePaths">
118
- /// An object containing the profile paths for the session.
119
- /// </param>
120
107
/// <param name="editorOperations">
121
108
/// An IEditorOperations implementation used to interact with the editor.
122
109
/// </param>
123
110
public void StartDebugSession (
124
- HostDetails hostDetails ,
125
- ProfilePaths profilePaths ,
111
+ PowerShellContext powerShellContext ,
126
112
IEditorOperations editorOperations )
127
113
{
128
114
// Initialize all services
129
- this . PowerShellContext = new PowerShellContext ( hostDetails , profilePaths ) ;
115
+ this . PowerShellContext = powerShellContext ;
130
116
this . ConsoleService = new ConsoleService ( this . PowerShellContext ) ;
131
117
this . RemoteFileManager = new RemoteFileManager ( this . PowerShellContext , editorOperations ) ;
132
118
this . DebugService = new DebugService ( this . PowerShellContext , this . RemoteFileManager ) ;
0 commit comments