Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)

This commit is contained in:
Cory Rivera
2021-08-25 16:28:29 -07:00
committed by GitHub
parent ab1112bfb3
commit cb7b7da0a4
1752 changed files with 59525 additions and 33878 deletions

View File

@@ -50,7 +50,7 @@ suite('Insights Utils tests', function () {
await fs.promises.mkdir(queryFileDir, { recursive: true });
queryFilePath = path.join(queryFileDir, 'test.sql');
await pfs.writeFile(queryFilePath, '');
await pfs.Promises.writeFile(queryFilePath, '');
});
test('resolveQueryFilePath resolves path correctly with fully qualified path', async () => {
@@ -60,11 +60,12 @@ suite('Insights Utils tests', function () {
undefined,
new TestContextService(),
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -92,11 +93,12 @@ suite('Insights Utils tests', function () {
undefined,
contextService,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -124,11 +126,12 @@ suite('Insights Utils tests', function () {
undefined,
contextService,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -158,11 +161,12 @@ suite('Insights Utils tests', function () {
undefined,
contextService,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -193,11 +197,12 @@ suite('Insights Utils tests', function () {
undefined,
undefined,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -223,11 +228,12 @@ suite('Insights Utils tests', function () {
undefined,
undefined,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};
@@ -248,11 +254,12 @@ suite('Insights Utils tests', function () {
undefined,
undefined,
undefined,
undefined,
undefined);
const fileService = new class extends TestFileService {
override exists(uri: URI): Promise<boolean> {
return pfs.exists(uri.fsPath);
return pfs.Promises.exists(uri.fsPath);
}
};