-
Notifications
You must be signed in to change notification settings - Fork 750
Open
Labels
foam-coreRelated to API, core model or featureRelated to API, core model or feature
Milestone
Description
Describe the bug
Link references generated by the foam.edit.linkReferenceDefinitions settings does not handle ambiguous links correctly.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
-
Set
foam.edit.linkReferenceDefinitionsto "withExtensions" or "withoutExtensions" -
Create
dir1/foo.mdanddir2/foo.md -
Create
bar.mdand link to thedir2/foo.mdas[[dir2/foo]], save the file. -
See the generated link is
[dir2/foo]: foo.md "foo", resulting the error:Resource identifier is ambiguousFoam(ambiguous-identifier) foo.md(1, 1): Possible target: dir1/foo.md foo.md(1, 1): Possible target: dir2/foo.md
Expected behavior
The generated link should be [dir2/foo]: dir2/foo.md "foo"
Screenshots or Videos
No response
Operating System Version
Fedora 42 in WSL2
Visual Studio Code Version
1.107.1 994fd12f8d3a5aa16f17d42c041e5809167e845a x64
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
foam-coreRelated to API, core model or featureRelated to API, core model or feature