Filter
Exclude
Time range
-
Near
🎣 为什么一夜之间全网都在讨论“老色批(LSP)”? 如果你最近刷过开发者社区或 X/Twitter,应该会看到不少人在调侃“老色批(LSP)”。这里的“老色批”并不是字面意义上的“老司机”,而是 Language Server Protocol 的汉语谐音梗。随着 Claude Code 原生支持 LSP 插件mcpmarket.com,瞬间引爆了 Vibe coding 圈——大家终于可以在 AI 驱动的开发环境中享受到 IDE 级的代码智能,而不用再“盲码”了。 ✨ 没有 LSP 时有哪些痛点? 在早期的 AI 编码工具里,模型只能凭借自然语言对代码文本做大致理解。比如: 长文件搜索低效:当你要在几万行代码中找到一个变量或函数的定义时,只能使用 grep 或让 AI 逐行搜索。这不仅效率低,而且会快速消耗大语言模型的上下文窗口,引入大量无关内容。 跳转容易出错:模型可能会根据名称猜测定义位置,但一旦重名或命名不规范,就会跳错。 理解代码结构有限:没有类型信息和语法树的支持,模型无法判断变量作用域或函数签名,生成代码容易出 bug。 举个简单的例子:假设项目里有一个函数 calculate_total(),在 orders.py 里被调用。没有 LSP 时,你只能: “帮我在整个仓库里搜索 calculate_total 的定义” AI 会返回十几个结果,并占用大量 token;而且它不一定知道哪一个才是你真正需要的。 有了 LSP,Claude 可以直接向语言服务器询问该函数的“来源”,立即跳转到定义所在文件和行号,甚至显示参数类型和返回值。这样一来,AI 助手就能快速理解上下文,既节省 token,又降低出错概率。 ⚙️ 如何配置 LSP 服务器? 安装语言服务器 LSP 依赖各语言社区提供的语言服务器。以下是常见语言的安装方式: TypeScript/JavaScript:npm install -g typescript-language-server typescript Python:pip install pyright 或 pip install python-lsp-server Rust:rustup component add rust-analyzer Go:go install golang.org/x/tools/gopls@lat… 其他语言可以参考官方文档或社区提供的 LSP 实现。确保这些可执行文件在环境变量 PATH 中。 安装 Claude Code LSP 插件 官方插件市场提供了一系列预配置好的 LSP 插件github.com。在 Claude Code 中运行: /plugin marketplace add eli0shin/cli-lsp-client /plugin install lsp-plugin@cli-lsp-client 其中 cli-lsp-client 是一个捆绑包,内置多种语言的 LSP 配置。插件安装后会在你的 .claude 目录下生成相应配置。 配置语言服务器路径(可选) 如果你使用的语言服务器没有在默认路径,或者想使用特定版本,可以在 Claude Code 的配置文件中指定。创建或编辑 .lsp.json 文件,例如: { "language": "python", "command": "/usr/local/bin/pyright-langserver", "args": ["--stdio"] } 将该文件放置于你的插件目录下,然后在 installed_plugins.json 中注册即可。 启用插件并验证 使用 /plugin 查看已安装插件列表,确保 LSP 插件已启用。然后在 Claude Code 中打开项目,尝试运行: /goto path/to/file.py:calculate_total或者直接在 Web 界面中点击变量/函数名;若能跳转到定义并显示类型信息,就说明配置成功。 🧠 为什么 LSP 对 Vibe coding 和 AI 创业者很重要? 让 AI 看懂代码结构:通过 LSP,Claude 不再只是对文本做模式匹配,而是能基于抽象语法树理解代码关系,生成和修改代码更加可靠code.claude.com。 多语言生态:官方插件市场提供 TypeScript、Rust、Python、Go 等多种语言的 LSP 支持github.com,这对于构建多语言服务或跨技术栈的 AI 工具尤为重要。 补齐功能差距:最新版本的 LSP 功能包含 go‑to‑definition、find references 和 hover documentationmcpmarket.com,让 Claude Code 的体验接近专业 IDE。 节省成本:通过精准定位和实时诊断,可以减少模型调用的 token 消耗,尤其在处理大型代码库时显著节约成本。 促进插件生态:开发者可以基于 LSP 构建自己的插件,为新语言或框架提供支持,甚至可以在市场上分享、变现。 ✅ 小结 LSP爆红的背后,是开发者对更强大代码智能的需求。LSP 将这一需求变为现实,并通过 Claude Code 这样的 AI 编码助手走入 Vibe coding 和 AI 创业的世界。配置好语言服务器和插件后,你的 AI 开发流程将不再依赖笨重的全文搜索,而是像专业 IDE 一样精准、即时、高效——这正是下一代 AI 工具的价值所在。 #vibecoding #LanguageServerProtocol #ClaudeCode
2
232
📷 Xcode 26 now includes the `SourceKit-LSP` frameworks. I don't see it being used, but it's a new addition to #Xcode. I'm not sure of the exact purpose, but I wonder if the LLM isn't the main reason here. OR Xcode will get LanguageServerProtocol soon for other languages
1
27
2,558
14 Jan 2025

3
75
I've published a proof of concept repository with extracted LanguageServerProtocol to separate package github.com/krzyzanowskim/lan…

1
3
1,084
I propose separate LanguageServerProtocol and LanguageServerProtocolJSONRPC to a separate package, apple/language-server-protocol and use it as a dependency for apple/sourcekit-lsp package. This way other packages can use LanguageServerProtocol without SwiftPM dependency (that itself bring many more dependencies to the plate). forums.swift.org/t/propose-d…

1
1
10
3,594
28 Sep 2023
#Defold editor now (finally!) has a code documentation popup, with proper formatting and stuff, activated with a Ctrl Space key combo when the code completion popup is already shown. One step closer to #LanguageServerProtocol integration 😌 Written in #Clojure!
4
7
103
3,524
19 Sep 2023
I'm currently refactoring @defold editor's code completion with the intent to support completions from the LSP protocol. Here is a sneak peek at the new documentation popup! (formatting TBD) #defold #LanguageServerProtocol #Clojure
3
9
81
4,075
24 Jan 2023
Join us this Thu, Jan 26th 6 PM for the Gdansk Open Source Meetup #2. Learn about the role of #LanguageServer’s in code development and how automation impacts the #PCB design workflow in #KiCad. meetup.com/gdansk-open-sourc… #LanguageServerProtocol #pcbdesign #opensource #linux
6
9
662
31 Oct 2022
We are working on linting support in the Defold code editor. No ETAs yet, but here is a tech demo! #LanguageServerProtocol #Defold
4
7
57
Is there a way to setup a shortcut to "re-run" the Delphi LSP instances? stackoverflow.com/q/74164165… #delphi #coding #programming #developer #languageserverprotocol

2
2
Visual Studio Code: Markdown Language Server mit mehr Möglichkeiten heise.de/news/Visual-Studio-… #LanguageServer #LanguageServerProtocol

5
6
Lots of thanks to those that helped with SwiftLSPClient! But, the transition to LanguageServerProtocol LanguageClient is now complete. About 70% of the (gigantic) 3.17 LSP spec supported! github.com/ChimeHQ/LanguageS… github.com/ChimeHQ/LanguageC…
2
22 Jan 2022
LanguageServerProtocol(LSP) エディタと言語間の橋渡しをしてくれるソフトウェア SwiftではSourceKit-LSPを用いることによって、VimはXcode並みの実用性を持つまでに至っている 将来的にはemaxなどにも対応予定
1
1
Here's a practical guide for the #LanguageServerProtocol by @malintha_r ✍🏽 The below article is a continuation of the practical aspects of Malintha's previous blog ➡️ bit.ly/3oaGa6v where he discussed the basics of the LSP bit.ly/3q0uhRq

4
9
31 Mar 2021
The Haskell language server is awesome 👍 github.com/haskell/haskell-l… #haskell #languageserverprotocol #webdev

1
4
19 Jan 2021
Don't understand the #LanguageServerProtocol hate. LS should be thought of as the backend to editors. It's not a novel concept, vim & emacs have been doing it for years, LSP simply standardized the IPC. People be actin like it's crazy to separate the UX from the logic.
2
19 Feb 2020
There are some bugs in this published demo version that are fixed in master. Happy to report that semantic highlighting for Dockerfiles through the #languageserverprotocol is progressing smoothly! Take it for a spin at rcjsuen.github.io/dockerfile… #docker #dockerfile #moby #lsp
13 Feb 2020
I have some great, albeit surprising to some, news. Roughly an hour ago, my work creating the leading #adalang extension for @code has been merged together with the #LanguageServerProtocol work from @AdaCoreCompany. Any work going forward will be done together.
2
3