The restart command should start the server if it's not yet running

未关闭
#628 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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:

Screenshot from 2022-06-24 15-06-13

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

haskell/vscode-haskell 的其他 Issue

查看 haskell/vscode-haskell 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。