From 57e7e9fade9dbbe58cc90970d22a50880abe2267 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 19 May 2021 16:08:48 -0700 Subject: [PATCH] Use PowerShell terminal icon (when available) --- src/session.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session.ts b/src/session.ts index 041c3ff1ff..ac55b5ee4b 100644 --- a/src/session.ts +++ b/src/session.ts @@ -656,7 +656,9 @@ export class SessionManager implements Middleware { private setSessionStatus(statusText: string, status: SessionStatus): void { // Set color and icon for 'Running' by default - let statusIconText = "$(terminal) "; + let statusIconText = (semver.gte(vscode.version, "1.56.0")) + ? "$(terminal-powershell) " + : "$(terminal) "; let statusColor = "#affc74"; if (status === SessionStatus.Initializing) {