Allow extensions to provide data for language_ids
(#10053)
This PR makes it so extensions can provide values for the `language_ids` method on the `LspAdapter` trait. These are provided as data in the `language_servers` section of the `extension.toml`, like so: ```toml [language_servers.intelephense] name = "Intelephense" language = "PHP" language_ids = { PHP = "php"} ``` Release Notes: - N/A Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
65f0712713
commit
39cc3c0778
3 changed files with 16 additions and 5 deletions
|
@ -9,6 +9,7 @@ repository = "https://github.com/zed-industries/zed"
|
|||
[language_servers.intelephense]
|
||||
name = "Intelephense"
|
||||
language = "PHP"
|
||||
language_ids = { PHP = "php"}
|
||||
|
||||
[grammars.php]
|
||||
repository = "https://github.com/tree-sitter/tree-sitter-php"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue