ZIm/crates/languages/src
Kirill Bulatov d3cb08bf35
Support .editorconfig (#19455)
Closes https://github.com/zed-industries/zed/issues/8534
Supersedes https://github.com/zed-industries/zed/pull/16349

Potential concerns:
* we do not follow up to the `/` when looking for `.editorconfig`, only
up to the worktree root.
Seems fine for most of the cases, and the rest should be solved
generically later, as the same issue exists for settings.json
* `fn language` in `AllLanguageSettings` is very hot, called very
frequently during rendering. We accumulate and parse all `.editorconfig`
file contents beforehand, but have to go over globs and match these
against the path given + merge the properties still.
This does not seem to be very bad, but needs more testing and
potentially some extra caching.


Release Notes:

- Added .editorconfig support

---------

Co-authored-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
2024-10-21 13:05:30 +03:00
..
bash Improve auto-detection via shebang of TypeScript, JavaScript and Shell Script (#19114) 2024-10-13 02:35:46 -04:00
c c: Add runnable for main function (#18720) 2024-10-04 17:28:12 +02:00
cpp Improve C++ Tree-sitter queries (#18016) 2024-09-30 10:27:30 +02:00
css Treat .postcss files as CSS (#19416) 2024-10-18 11:11:29 -04:00
diff Add Diff language (#19129) 2024-10-15 16:02:12 -04:00
go Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
gomod File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript Improve auto-detection via shebang of TypeScript, JavaScript and Shell Script (#19114) 2024-10-13 02:35:46 -04:00
jsdoc Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
json Add escape string highlights to JSON and JSONC files (#18138) 2024-09-20 12:20:14 -04:00
jsonc Add escape string highlights to JSON and JSONC files (#18138) 2024-09-20 12:20:14 -04:00
markdown Detect 'MD' extension as Markdown (#18135) 2024-09-20 09:23:11 -04:00
markdown-inline Hide Markdown-Inline language from users with a new 'hidden' flag on language configs (#17104) 2024-08-29 11:23:33 -07:00
python Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
regex Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
rust Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
tsx Automatically indent JSX (#18816) 2024-10-10 15:15:12 +03:00
typescript Improve auto-detection via shebang of TypeScript, JavaScript and Shell Script (#19114) 2024-10-13 02:35:46 -04:00
yaml yaml: Add single quotes to list of brackets (#16859) 2024-08-26 18:02:40 +02:00
bash.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
c.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
css.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
go.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
json.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
lib.rs Add Diff language (#19129) 2024-10-15 16:02:12 -04:00
python.rs Make python run local worktree LSPs (#18353) 2024-09-25 12:45:41 -07:00
rust.rs Support .editorconfig (#19455) 2024-10-21 13:05:30 +03:00
tailwind.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
typescript.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
vtsls.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
yaml.rs Support .editorconfig (#19455) 2024-10-21 13:05:30 +03:00