mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-02 05:35:30 +01:00
files - add more tests and fix promisify issue with fs.read and fs.write
This commit is contained in:
@@ -402,7 +402,7 @@ export async function main(argv: string[]): Promise<any> {
|
||||
|
||||
const cts = new CancellationTokenSource();
|
||||
child.on('close', () => cts.dispose(true));
|
||||
await watchFileContents(tmpName, chunk => stream.write(chunk), cts.token);
|
||||
await watchFileContents(tmpName, chunk => stream.write(chunk), () => { /* ignore */ }, cts.token);
|
||||
} finally {
|
||||
unlinkSync(tmpName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user