Exclude "." from file path suggestions

It looks funny and doesn't have any value.
This commit is contained in:
Stefan Haller 2025-07-10 14:39:16 +02:00
parent fee5794c83
commit 4a6041f3ce

View file

@ -103,7 +103,9 @@ func (self *SuggestionsHelper) GetFilePathSuggestionsFunc() func(string) []*type
if err != nil {
return err
}
trie.Insert(patricia.Prefix(path), path)
if path != "." {
trie.Insert(patricia.Prefix(path), path)
}
return nil
})