File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
extensions/ql-vscode/src/databases Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ export class DatabaseFetcher {
337337 await ensureDir ( this . storagePath ) ;
338338 const unzipPath = await this . getStorageFolder ( databaseUrl , nameOverride ) ;
339339
340- if ( this . isFile ( databaseUrl ) ) {
340+ if ( Uri . parse ( databaseUrl ) . scheme === "file" ) {
341341 await this . readAndUnzip ( databaseUrl , unzipPath , progress ) ;
342342 } else {
343343 await this . fetchAndUnzip (
@@ -580,10 +580,6 @@ export class DatabaseFetcher {
580580 throw new Error ( `${ errorMessage } .\n\nReason: ${ msg } ` ) ;
581581 }
582582
583- private isFile ( databaseUrl : string ) {
584- return Uri . parse ( databaseUrl ) . scheme === "file" ;
585- }
586-
587583 /**
588584 * Databases created by the old odasa tool will not have a zipped
589585 * source location. However, this extension works better if sources
You can’t perform that action at this time.
0 commit comments