mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Updating @types/node
Needs some minor code changes too to support the new typings
This commit is contained in:
@@ -24,7 +24,7 @@ export async function createRandomFile(contents: string | Uint8Array = '', dir:
|
||||
} else {
|
||||
fakeFile = vscode.Uri.parse(`${testFs.scheme}:/${rndName() + ext}`);
|
||||
}
|
||||
testFs.writeFile(fakeFile, Buffer.from(contents), { create: true, overwrite: true });
|
||||
testFs.writeFile(fakeFile, typeof contents === 'string' ? Buffer.from(contents) : Buffer.from(contents), { create: true, overwrite: true });
|
||||
return fakeFile;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user