Skip to content

Commit 0817abd

Browse files
committed
Use Uri.file instead of Uri.parse
1 parent 821ec9b commit 0817abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function databaseArchiveFetcher(
106106
// find the path to the database. The actual database might be in a sub-folder
107107
const dbPath = await findDirWithFile(unzipPath, '.dbinfo', 'codeql-database.yml');
108108
if (dbPath) {
109-
const item = await databasesManager.openDatabase(Uri.parse(`file:${dbPath}`));
109+
const item = await databasesManager.openDatabase(Uri.file(dbPath));
110110
databasesManager.setCurrentDatabaseItem(item);
111111
return item;
112112
} else {

0 commit comments

Comments
 (0)