Skip to content

Commit

Permalink
Improve language client library close action message (#4141)
Browse files Browse the repository at this point in the history
The updated language client library now displays an error when the
connection to the server terminates. Thing is, we already have our own
restart experience where we inform the user that the terminal should be
restarted, and give them a Yes/No option to do so. Unfortunately, we
can't suppress this error message, and I don't think that we want to
auto-restart the terminal, so I've at least made the message a little
more clear.
  • Loading branch information
andyleejordan committed Aug 18, 2022
1 parent 1019661 commit fcaa3ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,10 @@ Type 'help' to get help.
},
closed: (): CloseHandlerResult => {
// We have our own restart experience
return { action: CloseAction.DoNotRestart };
return {
action: CloseAction.DoNotRestart,
message: "Connection to PowerShell Editor Services (the Extension Terminal) was closed. See below prompt to restart!"
};
},
},
revealOutputChannelOn: RevealOutputChannelOn.Never,
Expand Down

0 comments on commit fcaa3ea

Please sign in to comment.