fix double compilation when snapshotting managedPaths
This commit is contained in:
parent
64f2bdb7a9
commit
00109744f7
|
@ -2256,7 +2256,9 @@ class FileSystemInfo {
|
|||
for (const path of managedItems) {
|
||||
const cache = this._managedItems.get(path);
|
||||
if (cache !== undefined) {
|
||||
managedFiles.add(join(this.fs, path, "package.json"));
|
||||
if (cache !== "missing") {
|
||||
managedFiles.add(join(this.fs, path, "package.json"));
|
||||
}
|
||||
managedItemInfo.set(path, cache);
|
||||
} else {
|
||||
jobs++;
|
||||
|
@ -2269,7 +2271,9 @@ class FileSystemInfo {
|
|||
}
|
||||
jobError();
|
||||
} else if (entry) {
|
||||
managedFiles.add(join(this.fs, path, "package.json"));
|
||||
if (entry !== "missing") {
|
||||
managedFiles.add(join(this.fs, path, "package.json"));
|
||||
}
|
||||
managedItemInfo.set(path, entry);
|
||||
jobDone();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue