Skip to content

Bug: CodexLens 缺少默认 LSP server 配置与初始化引导,导致默认空配置 #136

@ljh740

Description

@ljh740

问题描述

CodexLens 的 standalone LSP 路径在默认安装后通常没有可用 server 配置,导致 lsp-status 显示空配置,probe-file 直接失败。

该问题是通用初始化体验问题,不限某一种语言。

复现步骤

  1. 默认安装并进入任意代码项目目录。
  2. 执行:
python -m codexlens lsp-status --path /path/to/project --probe-file /path/to/project/some_file.ext --json

实际结果

常见现象:

  • 日志提示:No lsp-servers.json found, using empty config
  • servers 为空数组
  • probe 返回:No language server configured/available for this file.

预期结果

至少应满足其一:

  1. 提供默认 lsp-servers.json 模板(可按平台裁剪);或
  2. 首次运行时输出明确初始化指引(配置文件位置、示例格式、最小可用配置);或
  3. 提供专门的初始化命令(如 lsp init)自动生成模板。

影响

  • 用户容易误判为 LSP 功能不可用或损坏
  • 首次接入门槛高,排障成本大

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions