Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
go: enable completions with placeholders by default (#7780)
Thorsten Ballb47aff4c144f
diff --git a/crates/zed/src/languages/go.rs b/crates/zed/src/languages/go.rsindex 0c2843c03fd..cb171d5bd30 100644--- a/crates/zed/src/languages/go.rs+++ b/crates/zed/src/languages/go.rs@@ -6,6 +6,7 @@ pub use language::*;use lazy_static::lazy_static;use lsp::LanguageServerBinary;use regex::Regex;+use serde_json::json;use smol::{fs, process};use std::{any::Any,@@ -170,6 +171,12 @@ impl super::LspAdapter for GoLspAdapter {})}+ fn initialization_options(&self) -> Option<serde_json::Value> {+ Some(json!({+ "usePlaceholders": true,+ }))+ }+async fn label_for_completion(&self,completion: &lsp::CompletionItem,