Extract Protocol Buffers support into an extension (#18704)
This PR extracts the Protocol Buffers support into an extension. Release Notes: - Removed built-in support for Protocol Buffers, in favor of making it available as an extension. The Protocol Buffers extension will be suggested for download when you open a `.proto` file.
This commit is contained in:
parent
8c95b8d89a
commit
cddd7875a4
9 changed files with 13 additions and 16 deletions
|
@ -45,7 +45,6 @@ pub fn init(languages: Arc<LanguageRegistry>, node_runtime: NodeRuntime, cx: &mu
|
|||
("jsonc", tree_sitter_json::LANGUAGE),
|
||||
("markdown", tree_sitter_md::LANGUAGE),
|
||||
("markdown-inline", tree_sitter_md::INLINE_LANGUAGE),
|
||||
("proto", protols_tree_sitter_proto::LANGUAGE),
|
||||
("python", tree_sitter_python::LANGUAGE),
|
||||
("regex", tree_sitter_regex::LANGUAGE),
|
||||
("rust", tree_sitter_rust::LANGUAGE),
|
||||
|
@ -183,7 +182,6 @@ pub fn init(languages: Arc<LanguageRegistry>, node_runtime: NodeRuntime, cx: &mu
|
|||
"yaml",
|
||||
vec![Arc::new(yaml::YamlLspAdapter::new(node_runtime.clone()))]
|
||||
);
|
||||
language!("proto");
|
||||
|
||||
// Register globally available language servers.
|
||||
//
|
||||
|
@ -277,7 +275,7 @@ pub fn language(name: &str, grammar: tree_sitter::Language) -> Arc<Language> {
|
|||
fn load_config(name: &str) -> LanguageConfig {
|
||||
let config_toml = String::from_utf8(
|
||||
LanguageDir::get(&format!("{}/config.toml", name))
|
||||
.unwrap()
|
||||
.unwrap_or_else(|| panic!("missing config for language {:?}", name))
|
||||
.data
|
||||
.to_vec(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue