mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user