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 {
317317 }
318318
319319 public async initialize ( ) {
320+ await this . ensureDistributionStateExists ( ) ;
321+ }
322+
323+ private async ensureDistributionStateExists ( ) {
320324 const distributionStatePath = this . getDistributionStatePath ( ) ;
321325 try {
322326 this . distributionState = await readJson ( distributionStatePath ) ;
@@ -414,6 +418,10 @@ class ExtensionSpecificDistributionManager {
414418 release : Release ,
415419 progressCallback ?: ProgressCallback ,
416420 ) : Promise < void > {
421+ if ( ! this . distributionState ) {
422+ await this . ensureDistributionStateExists ( ) ;
423+ }
424+
417425 const distributionStatePath = this . getDistributionStatePath ( ) ;
418426
419427 await withDistributionUpdateLock (
You can’t perform that action at this time.
0 commit comments