@@ -1188,44 +1188,6 @@ await requestContext.SendResult(new TextEdit[1]
11881188 } ) ;
11891189 }
11901190
1191- protected Task HandleEvaluateRequest (
1192- DebugAdapterMessages . EvaluateRequestArguments evaluateParams ,
1193- RequestContext < DebugAdapterMessages . EvaluateResponseBody > requestContext )
1194- {
1195- // We don't await the result of the execution here because we want
1196- // to be able to receive further messages while the current script
1197- // is executing. This important in cases where the pipeline thread
1198- // gets blocked by something in the script like a prompt to the user.
1199- var executeTask =
1200- this . editorSession . PowerShellContext . ExecuteScriptString (
1201- evaluateParams . Expression ,
1202- writeInputToHost : true ,
1203- writeOutputToHost : true ,
1204- addToHistory : true ) ;
1205-
1206- // Return the execution result after the task completes so that the
1207- // caller knows when command execution completed.
1208- executeTask . ContinueWith (
1209- ( task ) =>
1210- {
1211- // Start the command loop again
1212- // TODO: This can happen inside the PSHost
1213- this . editorSession . ConsoleService . StartReadLoop ( ) ;
1214-
1215- // Return an empty result since the result value is irrelevant
1216- // for this request in the LanguageServer
1217- return
1218- requestContext . SendResult (
1219- new DebugAdapterMessages . EvaluateResponseBody
1220- {
1221- Result = "" ,
1222- VariablesReference = 0
1223- } ) ;
1224- } ) ;
1225-
1226- return Task . FromResult ( true ) ;
1227- }
1228-
12291191 #endregion
12301192
12311193 #region Event Handlers
0 commit comments