Skip to content

Commit

Permalink
fix: ensure remote changes have a value for ignored (plugin expects it)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Aug 9, 2022
1 parent de0b9e7 commit bc1379f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/sourceTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,18 +749,14 @@ export class SourceTracking extends AsyncCreatable {
}
// when the file doesn't exist locally, there are no filePaths
// SDR can generate the hypothetical place it *would* go and check that
if (
input.name &&
input.type &&
filePathsFromMetadataComponent({
fullName: input.name,
type: new RegistryAccess().getTypeByName(input.type),
}).some((hypotheticalFilePath) => this.forceIgnore.denies(hypotheticalFilePath))
) {
if (input.name && input.type) {
return [
{
...baseObject,
ignored: true,
ignored: filePathsFromMetadataComponent({
fullName: input.name,
type: new RegistryAccess().getTypeByName(input.type),
}).some((hypotheticalFilePath) => this.forceIgnore.denies(hypotheticalFilePath)),
},
];
}
Expand Down

0 comments on commit bc1379f

Please sign in to comment.