← 返回起始笔记位置

知识卡片

延伸参考卡 · 6075.c.8 · 生成模型:未记录

语言服务器连接编辑器

理解等级:中级

rust-analyzer 将 Rust 分析能力通过 LSP 提供给编辑器。编辑器使用服务器给出的定义位置、补全和行内诊断,无须在每种编辑器内都实现相同分析。编辑器提示有助于定位问题,最终构建仍通过项目工具链。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 附录 D · 开发工具 More Lints with Clippy · 查看原书依据

      To help with IDE integration, the Rust community recommends using rust-analyzer. This tool is a set of compiler-centric utilities that speak Language Server Protocol, which is a specification for IDEs and programming languages to communicate with each other. Different clients can use rust-analyzer, such as the Rust analyzer plug-in for Visual Studio Code at https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer.

    参考来源

    - 位置:《The Rust Programming Language(第2版)》附录 D · 开发工具(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,`extracted/The Rust Programming Language(第2版)/_epub-src/b04.xhtml`,块 0037) - 结论依据:原文解释 rust-analyzer 与编辑器借协议合作。 - 原始内容:To help with IDE integration, the Rust community recommends using rust-analyzer. This tool is a set of compiler-centric utilities that speak Language Server Protocol, which is a specification for IDEs and programming languages to communicate with each other. Different clients can use rust-analyzer, such as the Rust analyzer plug-in for Visual Studio Code at https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer.