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";
22import {
33 createWriteStream ,
44 mkdtemp ,
5+ outputJson ,
56 pathExists ,
67 readJson ,
78 remove ,
8- writeJson ,
99} from "fs-extra" ;
1010import { tmpdir } from "os" ;
1111import { delimiter , dirname , join } from "path" ;
@@ -339,7 +339,7 @@ class ExtensionSpecificDistributionManager {
339339 } ;
340340
341341 // 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 ) ;
343343 } else {
344344 void showAndLogExceptionWithTelemetry (
345345 this . logger ,
@@ -714,7 +714,7 @@ class ExtensionSpecificDistributionManager {
714714 this . distributionState = newState ;
715715
716716 const distributionStatePath = this . getDistributionStatePath ( ) ;
717- await writeJson ( distributionStatePath , newState ) ;
717+ await outputJson ( distributionStatePath , newState ) ;
718718 }
719719
720720 private static readonly _currentDistributionFolderBaseName = "distribution" ;
You can’t perform that action at this time.
0 commit comments