Skip to content

Absolute rule reference use local scope #173

@hediet

Description

@hediet

I think this line:

collectSpecificDependencies(result, baseGrammar, baseGrammar, includedName, patternRepository);

should rather be this:

collectSpecificDependencies(result, baseGrammar, baseGrammar, includedName, baseGrammar.repository);

Also, this line:

collectSpecificDependencies(result, baseGrammar, selfGrammar, includedName, patternRepository);

should be this:

collectSpecificDependencies(result, baseGrammar, selfGrammar, includedName, selfGrammar.repository);

Let's say source.md embeds source.css and a rule in source.css references source.md#link.
Then with the logic in main, a rule in source.css referencing source.md#link would look up link in its local repository (first repositories of this rule or parent rules, then the repository of source.css), but not in the repository of source.md.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions