mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
@@ -16,7 +16,7 @@ export function rndName() {
|
||||
export const testFs = new TestFS('fake-fs', true);
|
||||
vscode.workspace.registerFileSystemProvider(testFs.scheme, testFs, { isCaseSensitive: testFs.isCaseSensitive });
|
||||
|
||||
export async function createRandomFile(contents = '', dir: vscode.Uri | undefined = undefined, ext = ''): Promise<vscode.Uri> {
|
||||
export async function createRandomFile(contents: string | Uint8Array = '', dir: vscode.Uri | undefined = undefined, ext = ''): Promise<vscode.Uri> {
|
||||
let fakeFile: vscode.Uri;
|
||||
if (dir) {
|
||||
assert.strictEqual(dir.scheme, testFs.scheme);
|
||||
|
||||
Reference in New Issue
Block a user