You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]].
Thanks for reporting this, yup looks like a bug.
Off the top of my head the issue is in FoamWorkspace.getShortestIdentifier, if someone wants to take a look maybe start from there.
Describe the bug
I have this file structure:
When writing in
root.md
I'm trying to add the two notesa/Note.md
andb/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
[[
and try to autocomplete one of the notes.Expected behavior
When files have the same capitalisation and the file structure is like this:
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
The text was updated successfully, but these errors were encountered: