Skip to content

Commit 451a34a

Browse files
committed
Improve language client library close action message
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 451a34a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/session.ts

Lines changed: 4 additions & 1 deletion
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)