@telorun/language-server

中文文档
0.127.0发布于 2026/11/02SEE LICENSE IN LICENSEES Module零依赖

The telo language-server engine: every Telo diagnostic and editor feature of one telo version as a single self-contained, I/O-free ES module speaking LSP over a message port.

原始使用文档

@telorun/language-server

The telo language-server engine: every Telo diagnostic and editor feature of one telo version, as a single self-contained ES module (dist/language-server.mjs, no imports) that speaks LSP over a message port. @telorun/language-server@X is telo X's engine.

import { serve } from "@telorun/language-server";
serve(self); // inside a Web Worker; any { postMessage, addEventListener("message") } port works

The engine does no I/O of its own — every file, import and hub answer is a telo/* request its host serves. The protocol, the handshake and the host's obligations are specified in @telorun/editor-protocol.

版本与发布记录

@telorun/language-server 共发布 33 个版本,首次发布于 2026/09/27;过去 12 个月发布了 33 个版本。

版本发布日期距今
0.127.0latest2026/11/02今天
0.126.02026/11/011 天前
0.125.12026/10/313 天前
0.125.02026/10/304 天前
0.124.02026/10/295 天前
0.123.12026/10/268 天前

关于 @telorun/language-server 的常见问题

@telorun/language-server 是什么?

telo语言服务器引擎: 一个Telo版本的每个telo诊断和编辑器功能都是一个独立的,无I/O的ES模块,通过消息端口讲话LSP。

如何安装 @telorun/language-server?

在项目目录运行 npm install @telorun/language-server,或使用 pnpm add / yarn add / bun add。

@telorun/language-server 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/telorun__language-server 是否存在。

@telorun/language-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@telorun/language-server 可以商用吗?

@telorun/language-server 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@telorun/language-server 还在维护吗?

最新版本 0.127.0 发布于 2026/11/02(今天);至今共发布 33 个版本,其中过去 12 个月发布了 33 个;首次发布于 2026/09/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。