File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/ql-vscode/src/codeql-cli Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import type { WriteStream } from "fs";
2
2
import {
3
3
createWriteStream ,
4
4
mkdtemp ,
5
+ outputJson ,
5
6
pathExists ,
6
7
readJson ,
7
8
remove ,
8
- writeJson ,
9
9
} from "fs-extra" ;
10
10
import { tmpdir } from "os" ;
11
11
import { delimiter , dirname , join } from "path" ;
@@ -339,7 +339,7 @@ class ExtensionSpecificDistributionManager {
339
339
} ;
340
340
341
341
// This may result in a race condition, but when this happens both processes should write the same file.
342
- await writeJson ( distributionStatePath , this . distributionState ) ;
342
+ await outputJson ( distributionStatePath , this . distributionState ) ;
343
343
} else {
344
344
void showAndLogExceptionWithTelemetry (
345
345
this . logger ,
@@ -714,7 +714,7 @@ class ExtensionSpecificDistributionManager {
714
714
this . distributionState = newState ;
715
715
716
716
const distributionStatePath = this . getDistributionStatePath ( ) ;
717
- await writeJson ( distributionStatePath , newState ) ;
717
+ await outputJson ( distributionStatePath , newState ) ;
718
718
}
719
719
720
720
private static readonly _currentDistributionFolderBaseName = "distribution" ;
You can’t perform that action at this time.
0 commit comments