Is your enhancement related to a problem? Please describe.
The file name could match multiple schemas from schema store, in my case **/.github/workflows/deploy.yaml and deploy.yaml match GitHub and Deployer schemas.
Describe the solution you would like
I read the prioritization logic, and I believe it may make sense to give priority to patterns that match the longest:
for each schema pattern match, compute priority for schema as match.length+(schema.priority??0)
and then select the highest (as implemented now)
Describe alternatives you have considered
There are solutions to overcome this:
Renaming the file => deploy is very generic name, and it's bad that I cannot use it just because LSP cannot detect it as a github workflow.
Adding modeline => adds extra noise, especially that other files don't need it (so one exception)
Is your enhancement related to a problem? Please describe.
The file name could match multiple schemas from schema store, in my case
**/.github/workflows/deploy.yaml
anddeploy.yaml
match GitHub and Deployer schemas.Describe the solution you would like
I read the prioritization logic, and I believe it may make sense to give priority to patterns that match the longest:
match.length+(schema.priority??0)
Describe alternatives you have considered
There are solutions to overcome this:
deploy
is very generic name, and it's bad that I cannot use it just because LSP cannot detect it as a github workflow.Additional context
Here are some logs from LSP