Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/test/node/fixtures/gitdiff/01-basic-move-lines.diff
13406 views
1
diff --git a/01-basic b/01-basic-move-lines
2
index 30c5fc9cb..516748dfa 100644
3
--- a/01-basic
4
+++ b/01-basic-move-lines
5
@@ -5,11 +5,11 @@ import { spawn } from 'child_process';
6
7
export function f(args_: string[], flags: any, child: any) {
8
if (flags.verbose) {
9
- child.stdout?.on('data', (data) => console.log(data.toString('utf8')));
10
- child.stderr?.on('data', (data) => console.error(data.toString('utf8')));
11
+ return new Promise((c) => child.once('exit', () => c(null)));
12
}
13
if (flags.verbose) {
14
- return new Promise((c) => child.once('exit', () => c(null)));
15
+ child.stdout?.on('data', (data) => console.log(data.toString('utf8')));
16
+ child.stderr?.on('data', (data) => console.error(data.toString('utf8')));
17
}
18
child.unref();
19
return Promise.resolve();
20
21