Unbundle `LSP.Sever`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
Empieza leyendo LSP.Sever y la SeverDefinition monolítica; después compara el ejemplo del reactor y cómo ghcide gestiona el dispatch y el estado de VFS. El issue no identifica archivos ni tests; para darlo por terminado sería necesario acordar una descomposición implementable de la E/S del servidor, los handlers de inicialización y el acceso al estado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
At the moment LSP.Sever is "framework-like": you provide various kinds of functions via the monolithic SeverDefinition, and then the server framework is responsible for calling them. This has some warts:
- It is unclear what is handled by the framework and what isn't (see e.g. https://github.com/haskell/lsp/issues/414)
- It is difficult to customize parts of the behaviour
- A big example is the message dispatch loop. Our "reactor" example is (IMO) godawful: you have to override the handlers in order to sneak in some custom dispatch logic.
ghcidesimilarly tries to completely bypass this. (Also see e.g. https://github.com/haskell/lsp/issues/409) - Another example is whether or not to feed the
intializationOptionsto the configuration changed function. This isn't specified in the spec, but some clients expect it, so it's really something the server author should decide about, not us.
- A big example is the message dispatch loop. Our "reactor" example is (IMO) godawful: you have to override the handlers in order to sneak in some custom dispatch logic.
- It is difficult to mange state differently. For example, HLS wants to delay updates to the VFS so that long-running processes don't see inconsistent states. To do this they have to implement a complete second layer which takes VFS snapshots!
Here's some ideas for how to unbundle this:
- Modularise the server in/out into
IOactions that communicate over a channel, which clients can fork as they like. - Modularise the initialization handlers so we provide a number of standard handlers which do common actions and which can be combined with
<>. - Modularise state accesses so that they access the state via a typeclass, allowing multiple implementations.
- More?
Big questions:
- Is this a good direction of travel?
- Are there going to be any bits that will be really difficult?
- Lenguaje dominante
- Haskell
- Estrellas
- 426
- Forks
- 107
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de haskell/lsp
-
Unused build depdency on regexAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
-
Optimize `instance Eq NormalizedFilepath`?!Posiblemente ocupada @sjakobi la tomó hace 381 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Improve snippet sanitizationAbiertoZuriHac
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Todos los issues de haskell/lsp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
haskell/bytestring#730 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
seal-harness/seal-harness#399 ·
Los mantenedores suelen responder en 1 día
-
add previously overlooked rulesAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
reflex-frp/reflex#563 ·