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
All the .sample files I have on .git/hooks are recognized as Shell Script, except one fsmonitor-watchman.sample.
The only difference I noticed is that all sample files start with #!/bin/sh, whereas the fsmonitor-watchman.sample file starts with #!/usr/bin/perl.
Going to check the extensions for the path_suffixes for Shell Script I noticed that the sample extension is not found.
So how do sample files get recognized as Shell Script?
Moshyfawn
added
language
An umbrella label for all programming languages syntax behaviors
and removed
triage
Maintainer needs to classify the issue
labels
Jun 10, 2024
notpeter
added
bash
Bash scripting support
support
User support (non-defect troubleshooting, documentation, etc)
and removed
enhancement
[core label]
language
An umbrella label for all programming languages syntax behaviors
labels
Dec 16, 2024
Check for existing issues
Describe the feature
All the
.sample
files I have on.git/hooks
are recognized asShell Script
, except onefsmonitor-watchman.sample
.The only difference I noticed is that all sample files start with
#!/bin/sh
, whereas thefsmonitor-watchman.sample
file starts with#!/usr/bin/perl
.Going to check the extensions for the
path_suffixes
forShell Script
I noticed that thesample
extension is not found.So how do
sample
files get recognized asShell Script
?zed/crates/languages/src/bash/config.toml
Lines 1 to 4 in e829a8c
Recognized sample file:
Unrecognized sample file:
Going to see how vscode behaves, this file is recognized as perl, as can be seen from its initial wording
#!/usr/bin/perl
is a perl example file.So how are other files recognized as
Shell script
?If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: