aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-20 19:09:02 +0000
committerGitHub <[email protected]>2019-12-20 19:09:02 +0000
commit9467f81c588bf7a62ec882f293e0870c187b368b (patch)
tree08c131e1433ca40c9dfdf716b4b4f47b77d26ceb /editors/code/src/commands
parent02f9e04ee926241389f8c9e41fec9281de1e0af9 (diff)
parent6049f60a052b4097ab45a631480f8207ac5f6009 (diff)
Merge #2620
2620: Update packages r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/cargo_watch.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts
index 748be535c..ac62bdd48 100644
--- a/editors/code/src/commands/cargo_watch.ts
+++ b/editors/code/src/commands/cargo_watch.ts
@@ -111,8 +111,13 @@ export class CargoWatchProvider implements vscode.Disposable {
111 }, 111 },
112 ); 112 );
113 113
114 if (!this.cargoProcess) {
115 vscode.window.showErrorMessage('Cargo Watch failed to start');
116 return;
117 }
118
114 const stdoutData = new LineBuffer(); 119 const stdoutData = new LineBuffer();
115 this.cargoProcess.stdout.on('data', (s: string) => { 120 this.cargoProcess.stdout?.on('data', (s: string) => {
116 stdoutData.processOutput(s, line => { 121 stdoutData.processOutput(s, line => {
117 this.logInfo(line); 122 this.logInfo(line);
118 try { 123 try {
@@ -124,7 +129,7 @@ export class CargoWatchProvider implements vscode.Disposable {
124 }); 129 });
125 130
126 const stderrData = new LineBuffer(); 131 const stderrData = new LineBuffer();
127 this.cargoProcess.stderr.on('data', (s: string) => { 132 this.cargoProcess.stderr?.on('data', (s: string) => {
128 stderrData.processOutput(s, line => { 133 stderrData.processOutput(s, line => {
129 this.logError('Error on cargo-watch : {\n' + line + '}\n'); 134 this.logError('Error on cargo-watch : {\n' + line + '}\n');
130 }); 135 });