The restart command should start the server if it's not yet running
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- haskell, typescript, vscode
调研方向
从 VS Code 扩展中 "Restart Haskell LSP server" 和 "Start Haskell LSP server" 命令的入口点开始,然后跟踪语言服务器进程状态的检查方式。完成的标准是:在服务器已停止时调用 Restart,能够在不出现晦涩错误的情况下启动服务器,并在适当时显示不显眼的警告。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
I sometimes forget I already stopped the language server, and run the "Restart Haskell LSP server" command instead of "Start Haskell LSP server" command. This results in the following (kinda cryptic) error popup:

I assume this happens because whatever API the plugin is using expects an existing process to stop and then start.
I of course know now that I should then use the "start" command instead, but it was confusing the first few times and makes the plugin feel less polished than it should be.
Describe the solution you'd like
Ideally "Restart" should just start the language server if it's not yet running, instead of showing an error; the most I'd expect is an unobtrusive warning or the like saying "hey, the server wasn't running yet so I just started it."
Describe alternatives you've considered
One alternative is showing a more descriptive error message, e.g. instead of "call listen() first" it could say "use the start command instead of restart".
Additional context
None I can think of.
- 主要语言
- TypeScript
- 星标
- 594
- 派生
- 99
- 平均合并
- 18 小时 19 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
haskell/vscode-haskell 的其他 Issue
-
Support VS Code's foldable `#region` by adding `folding.markers` to `language-configuration.json`未关闭
难度 1/5 1 小时以内 新手友好度 78/100
haskell/vscode-haskell#1394 ·
-
type: bug
难度 2/5 1-3 小时 新手友好度 65/100
haskell/vscode-haskell#1332 · 2 条评论 ·
-
status: needs triage
难度 3/5 半天 新手友好度 62/100
haskell/vscode-haskell#1412 · 1 条评论 ·
-
status: needs triage
难度 3/5 1-2 天 新手友好度 68/100
haskell/vscode-haskell#1402 · 4 条评论 ·
-
status: needs triage
难度 3/5 1-2 天 新手友好度 58/100
haskell/vscode-haskell#1399 · 4 条评论 ·
查看 haskell/vscode-haskell 的全部 Issue
相似的 Issue
-
bug data-types
难度 2/5 1-3 小时 新手友好度 88/100
ClickHouse/clickhouse-js#1293 ·
维护者通常 1 天内回复
-
area: middleware enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
-
agent/quality testing
难度 1/5 1 小时以内 新手友好度 95/100
维护者通常 1 天内回复
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
juspay/agent-distro#203 ·
维护者通常 1 天内回复