File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ const NL = '\n';
88const CR = '\r' ;
99const nlRegExp = new RegExp ( `${ NL } ([^${ CR } ]|$)` , 'g' ) ;
1010
11+ class TerminalColors {
12+ public static blue = '\u001b[34m' ;
13+ public static reset = `\u001b[0m` ;
14+ }
15+
1116export class Terminal implements vscode . Pseudoterminal {
1217 private cmdArgs : string [ ] = [ ] ;
13- private cmdParams : { [ key : string ] : string } = { } ;
1418 private cmd : ChildProcessWithoutNullStreams | undefined ;
1519
1620 private readonly writeEmitter = new vscode . EventEmitter < string > ( ) ;
@@ -38,7 +42,11 @@ export class Terminal implements vscode.Pseudoterminal {
3842 public async exec ( cwd : string ) : Promise < string > {
3943 await this . waitForOpen . wait ( ) ;
4044
41- this . write ( this . cmdArgs . join ( ' ' ) + '\n' ) ;
45+ this . write (
46+ `${ TerminalColors . blue } ${ this . cmdArgs . join ( ' ' ) } ${
47+ TerminalColors . reset
48+ } \n`,
49+ ) ;
4250
4351 const { cmd, output } = this . cli . exec ( this . cmdArgs , cwd , {
4452 onStdOut : ( buffer : string ) => {
You can’t perform that action at this time.
0 commit comments