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

Abierto
#628 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
haskell, typescript, vscode

Línea de trabajo

Comienza por los puntos de entrada de la extensión de VS Code para los comandos "Restart Haskell LSP server" y "Start Haskell LSP server"; después, sigue cómo se comprueba el estado del proceso del servidor de lenguaje. Se considera terminado cuando invocar Restart con el servidor detenido lo inicia sin un error críptico, mostrando una advertencia discreta si corresponde.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
594
Forks
99
Merge medio
18 h 19 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de haskell/vscode-haskell

Todos los issues de haskell/vscode-haskell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.