@@ -79,6 +79,8 @@ public class EditorServicesHost
79
79
80
80
private readonly bool _enableConsoleRepl ;
81
81
82
+ private readonly bool _useLegacyReadLine ;
83
+
82
84
private readonly HashSet < string > _featureFlags ;
83
85
84
86
private readonly string [ ] _additionalModules ;
@@ -113,13 +115,15 @@ public EditorServicesHost(
113
115
HostDetails hostDetails ,
114
116
string bundledModulesPath ,
115
117
bool enableConsoleRepl ,
118
+ bool useLegacyReadLine ,
116
119
bool waitForDebugger ,
117
120
string [ ] additionalModules ,
118
121
string [ ] featureFlags )
119
122
: this (
120
123
hostDetails ,
121
124
bundledModulesPath ,
122
125
enableConsoleRepl ,
126
+ useLegacyReadLine ,
123
127
waitForDebugger ,
124
128
additionalModules ,
125
129
featureFlags ,
@@ -141,6 +145,7 @@ public EditorServicesHost(
141
145
HostDetails hostDetails ,
142
146
string bundledModulesPath ,
143
147
bool enableConsoleRepl ,
148
+ bool useLegacyReadLine ,
144
149
bool waitForDebugger ,
145
150
string [ ] additionalModules ,
146
151
string [ ] featureFlags ,
@@ -151,12 +156,10 @@ public EditorServicesHost(
151
156
152
157
_hostDetails = hostDetails ;
153
158
154
- //this._hostDetails = hostDetails;
155
159
_enableConsoleRepl = enableConsoleRepl ;
156
- //this.bundledModulesPath = bundledModulesPath ;
160
+ _useLegacyReadLine = useLegacyReadLine ;
157
161
_additionalModules = additionalModules ?? Array . Empty < string > ( ) ;
158
162
_featureFlags = new HashSet < string > ( featureFlags ?? Array . Empty < string > ( ) ) ;
159
- //this.serverCompletedTask = new TaskCompletionSource<bool>();
160
163
_internalHost = internalHost ;
161
164
162
165
#if DEBUG
@@ -247,6 +250,7 @@ public void StartLanguageService(
247
250
_factory ,
248
251
LogLevel . Trace ,
249
252
_enableConsoleRepl ,
253
+ _useLegacyReadLine ,
250
254
_featureFlags ,
251
255
_hostDetails ,
252
256
_additionalModules ,
@@ -306,6 +310,7 @@ public void StartDebugService(
306
310
profilePaths ,
307
311
_featureFlags ,
308
312
_enableConsoleRepl ,
313
+ _useLegacyReadLine ,
309
314
_internalHost ,
310
315
_hostDetails ,
311
316
_additionalModules )
0 commit comments