Skip to content

Commit

Permalink
refactor: Improve detection of dependencies in JsonParser (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirkaang authored Sep 16, 2024
1 parent e571571 commit 664b64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/src/core/parsers/JsonParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class JsonParser {
isDependencies(line: TextLine) {
const start = line.firstNonWhitespaceCharacterIndex;
return this.keys.some((key) => {
return line.text.substring(start, start + key.length + 3) === `"${key}":`;
return (line.text.substring(start, start + key.length + 3) === `"${key}":` && !line.text.includes("}"));
});
}
parseLockedFile(item: Item[]): Item[] {
Expand Down

0 comments on commit 664b64c

Please sign in to comment.