-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request to add feature setting match file type by using regex. #10765
Comments
I think a better alternative would be to support matching via globs, not regexes; https://docs.rs/glob/latest/glob/ It's less powerful than a regex, but it should suffice for your use case. |
Nice, anyone can help me, will be my first issue, I can try fix it. |
Sure! For starters, this function does path filtering: zed/crates/language/src/language_registry.rs Line 472 in 74241d9
user_file_types is a deserialized content of file_types , e.g. for the example provided in original post:
It then follows that all you have to do is change the code within the call to zed/crates/language/src/language_registry.rs Line 488 in 74241d9
|
I opened this PR #10960. I'm a newcomer, so please if someone can review and give me a feedback. |
I believe the issue I am running into with my angular LSP is similar to this one. From what I gather, the Angular LSP should only be applied to HTML files that have a Edit: After looking into this some more, I see that this only effects language overrides in the config, so it's not exactly what I am looking for in regard to my language server issues. |
This is gonna land in next Preview on Wednesday, 22.05. Thanks for getting this across the line @farayolaj :) |
This is now available in v0.136.0-pre. |
Check for existing issues
Describe the feature
Currently, I saw file_types only matches word by word. Can team support to match by regex?
------> It worked.
-----> it didn't work
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: