File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
extensions/ql-vscode/src/model-editor Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export async function prepareExternalApiQuery(
5858 return true ;
5959}
6060
61+ export const externalApiQueriesProgressMaxStep = 1500 ;
62+
6163export async function runExternalApiQueries (
6264 mode : Mode ,
6365 {
@@ -92,7 +94,8 @@ export async function runExternalApiQueries(
9294 queryStorageDir,
9395 additionalPacks,
9496 extensionPacks,
95- progress : ( update ) => progress ( { ...update , maxStep : 1500 } ) ,
97+ progress : ( update ) =>
98+ progress ( { ...update , maxStep : externalApiQueriesProgressMaxStep } ) ,
9699 token,
97100 // We need to create a lock file, because the query is inside our own pack
98101 createLockFile : true ,
@@ -106,7 +109,7 @@ export async function runExternalApiQueries(
106109 progress ( {
107110 message : "Decoding results" ,
108111 step : 1100 ,
109- maxStep : 1500 ,
112+ maxStep : externalApiQueriesProgressMaxStep ,
110113 } ) ;
111114
112115 const bqrsChunk = await readQueryResults ( {
@@ -120,7 +123,7 @@ export async function runExternalApiQueries(
120123 progress ( {
121124 message : "Finalizing results" ,
122125 step : 1450 ,
123- maxStep : 1500 ,
126+ maxStep : externalApiQueriesProgressMaxStep ,
124127 } ) ;
125128
126129 return decodeBqrsToExternalApiUsages ( bqrsChunk ) ;
You can’t perform that action at this time.
0 commit comments