lsp-cli 0.1.6

Command-line tool for talking to Language Server Protocol (LSP) servers from the terminal.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::cli::ImplementationArgs;
use crate::commands::symbol_query::{render_workspace_symbol_result, run_implementation_query};
use crate::config::ConfigStore;
use crate::error::Result;

pub(super) fn run(args: &ImplementationArgs, config: &ConfigStore) -> Result<String> {
    let result = run_implementation_query(&args.query, &args.name, args.full, config)?;
    Ok(render_workspace_symbol_result(
        &args.name,
        &args.query.query,
        args.query.files_with_matches,
        args.full,
        result,
    ))
}