Skip to content

Commit fcaa3ea

Browse files
Improve language client library close action message (#4141)
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.
1 parent 1019661 commit fcaa3ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/session.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,10 @@ Type 'help' to get help.
621621
},
622622
closed: (): CloseHandlerResult => {
623623
// We have our own restart experience
624-
return { action: CloseAction.DoNotRestart };
624+
return {
625+
action: CloseAction.DoNotRestart,
626+
message: "Connection to PowerShell Editor Services (the Extension Terminal) was closed. See below prompt to restart!"
627+
};
625628
},
626629
},
627630
revealOutputChannelOn: RevealOutputChannelOn.Never,

0 commit comments

Comments
 (0)