File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/ql-vscode/src/local-queries Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { getErrorMessage } from "../common/helpers-pure";
1414import { FALLBACK_QLPACK_FILENAME , getQlPackFilePath } from "../common/ql" ;
1515import type { App } from "../common/app" ;
1616import type { ExtensionApp } from "../common/vscode/vscode-app" ;
17+ import { QlPackFile } from "../packaging/qlpack-file" ;
1718
1819const QUICK_QUERIES_DIR_NAME = "quick-queries" ;
1920const QUICK_QUERY_QUERY_NAME = "quick-query.ql" ;
@@ -125,7 +126,7 @@ export async function displayQuickQuery(
125126
126127 // Only rewrite the qlpack file if the database has changed
127128 if ( shouldRewrite ) {
128- const quickQueryQlpackYaml : any = {
129+ const quickQueryQlpackYaml : QlPackFile = {
129130 name : "vscode/quick-query" ,
130131 version : "1.0.0" ,
131132 dependencies : {
@@ -175,6 +176,6 @@ async function checkShouldRewrite(
175176 if ( ! ( await pathExists ( qlPackFile ) ) ) {
176177 return true ;
177178 }
178- const qlPackContents : any = load ( await readFile ( qlPackFile , "utf8" ) ) ;
179+ const qlPackContents = load ( await readFile ( qlPackFile , "utf8" ) ) as QlPackFile ;
179180 return ! qlPackContents . dependencies ?. [ newDependency ] ;
180181}
You can’t perform that action at this time.
0 commit comments