File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
extensions/ql-vscode/src/codeql-cli Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ class ExtensionSpecificDistributionManager {
317
317
}
318
318
319
319
public async initialize ( ) {
320
+ await this . ensureDistributionStateExists ( ) ;
321
+ }
322
+
323
+ private async ensureDistributionStateExists ( ) {
320
324
const distributionStatePath = this . getDistributionStatePath ( ) ;
321
325
try {
322
326
this . distributionState = await readJson ( distributionStatePath ) ;
@@ -414,6 +418,10 @@ class ExtensionSpecificDistributionManager {
414
418
release : Release ,
415
419
progressCallback ?: ProgressCallback ,
416
420
) : Promise < void > {
421
+ if ( ! this . distributionState ) {
422
+ await this . ensureDistributionStateExists ( ) ;
423
+ }
424
+
417
425
const distributionStatePath = this . getDistributionStatePath ( ) ;
418
426
419
427
await withDistributionUpdateLock (
You can’t perform that action at this time.
0 commit comments