Skip to content

Commit c0f5b32

Browse files
authored
Merge pull request microsoft#162075 from microsoft/tyriar/wording
Improve free port messages
2 parents 2c68fb3 + 58f254a commit c0f5b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
178178
try {
179179
if (this._process?.freePortKillProcess) {
180180
const result = await this._process?.freePortKillProcess(port);
181-
this._notificationService.notify({ message: `Killed process w ID: ${result.processId} to free port ${result.port}`, severity: Severity.Info });
181+
this._notificationService.notify({ message: localize('killportsuccess', 'Killed process with PID {0} listening on port {1}', result.processId, result.port), severity: Severity.Info });
182182
}
183183
} catch (e) {
184-
this._notificationService.notify({ message: `Could not kill process for port ${port} wth error ${e}`, severity: Severity.Warning });
184+
this._notificationService.notify({ message: localize('killportfailure', 'Could not kill process listening on port {0}, command exited with error {1}', port, e), severity: Severity.Warning });
185185
}
186186
}
187187

0 commit comments

Comments
 (0)