jackTabsCode / zed-just

Zed extension for Justfiles
8 stars 6 forks source link

fix: path_suffixes #12

Closed martinschaer closed 1 day ago

martinschaer commented 1 month ago

I found out that the language_for_file_internal implementation does not match the documentation about path_suffixes. Instead of suffixes that support glob patterns, they are extension names (without including the dot), and names of hidden files (i.e. files that start with a dot).

So, .just has to be changed to just; and .justfile, .Justfile, and .JUSTFILE aren't required.

Wildcards don't work either. The current best solution for that is using file_types in settings.json.

I added a folder with tests.

martinschaer commented 1 month ago

This time I tested the extension with "Install Dev Extension" 😅