When implementing a Zed extension, path_suffixes doesn't support dots (ex: filename.cf.sub) #10997
Open
1 task done
Labels
defect
[core label]
extension infrastructure
Feedback for extensions APIs, creation, management, etc
Check for existing issues
I found this other issue which seems almost the same, except it talks about wildcards:
#8466
Describe the bug / provide steps to reproduce it
My extension:
https://github.com/olehermanse/zed-cfengine
Is not highlighting some of our test files which use the
.cf.sub
extension:https://github.com/cfengine/core/blob/d7227da3cb47cbe8b6079559acac3cb6374f1a10/tests/acceptance/run_with_server.cf.sub
Even though I added it to the
path_suffixes
:olehermanse/zed-cfengine@f854236
As a programmer, I can understand why Zed would consider the extension / suffix anything after the last
.
, however as a user / extension author, I'd expect what I tried to do to "just work". Essentially, I'd expect the logic forpath_suffixes
to match any files which end with one of those strings (even if one of those strings include a.
).Workaround: I guess I could add just
sub
topath_suffixes
to make it work for myself, but that doesn't "feel right" as it would conflict with any other language files which might end in.sub
.Environment
Zed: v0.131.7 (Zed)
OS: macOS 14.4.1
Memory: 32 GiB
Architecture: x86_64
The text was updated successfully, but these errors were encountered: