Skip to content

Commit bc1379f

Browse files
committed
fix: ensure remote changes have a value for ignored (plugin expects it)
1 parent de0b9e7 commit bc1379f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/sourceTracking.ts

+5-9
Original file line numberDiff line numberDiff line change
@@ -749,18 +749,14 @@ export class SourceTracking extends AsyncCreatable {
749749
}
750750
// when the file doesn't exist locally, there are no filePaths
751751
// SDR can generate the hypothetical place it *would* go and check that
752-
if (
753-
input.name &&
754-
input.type &&
755-
filePathsFromMetadataComponent({
756-
fullName: input.name,
757-
type: new RegistryAccess().getTypeByName(input.type),
758-
}).some((hypotheticalFilePath) => this.forceIgnore.denies(hypotheticalFilePath))
759-
) {
752+
if (input.name && input.type) {
760753
return [
761754
{
762755
...baseObject,
763-
ignored: true,
756+
ignored: filePathsFromMetadataComponent({
757+
fullName: input.name,
758+
type: new RegistryAccess().getTypeByName(input.type),
759+
}).some((hypotheticalFilePath) => this.forceIgnore.denies(hypotheticalFilePath)),
764760
},
765761
];
766762
}

0 commit comments

Comments
 (0)