foam
foam copied to clipboard
Ambiguous identifier when notes share the same file name with different capitalisation
Describe the bug
I have this file structure:
test/
┣ a/
┃ ┗ Note.md
┣ b/
┃ ┗ note.md
┗ root.md
When writing in root.md
I'm trying to add the two notes a/Note.md
and b/note.md
. Using autocomplete after typing [[
, I get an warning for an ambiguous identifier. Both notes complete like this: [[Note]]
and [[note]]
.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
- Create two folders with a file that has the same file name with different capitalisation.
- Create a note in the root.
- Type
[[
and try to autocomplete one of the notes. - It should say 'Resource identifier is ambiguous'.
Expected behavior
When files have the same capitalisation and the file structure is like this:
test/
┣ a/
┃ ┗ Note.md
┣ b/
┃ ┗ Note.md
┗ root.md
Autocompletion works correctly and detects the ambiguity. The notes are completed as [[a/Note]]
and [[b/Note]]
.
Screenshots or Videos
Operating System Version
Windows 10
Visual Studio Code Version
Version: 1.84.0-insider (user setup) Commit: 60182c7e1a666961ded4d0319c154f52d85daf30 Date: 2023-10-30T23:41:49.215Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19044
Additional context
No response