on master help sign in
Add docstring for language_server!() macro (#2750)
e9283b2Gokul Soumya
helix-term/src/commands/lsp.rs+5
@@ -16,6 +16,11 @@ use crate::{
16
16
17use std::borrow::Cow;
17use std::borrow::Cow;
18
18
19+/// Gets the language server that is attached to a document, and
20+/// if it's not active displays a status message. Using this macro
21+/// in a context where the editor automatically queries the LSP
22+/// (instead of when the user explicitly does so via a keybind like
23+/// `gd`) will spam the "LSP inactive" status message confusingly.
19#[macro_export]
24#[macro_export]
20macro_rules! language_server {
25macro_rules! language_server {
21 ($editor:expr, $doc:expr) => {
26 ($editor:expr, $doc:expr) => {