makeSemanticTokens should use the same legend as inferServerCapabilities
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia leggendo makeSemanticTokens e inferServerCapabilities, i due punti di ingresso indicati nell’issue, e confronta il modo in cui ciascuno rappresenta la legenda dei token semantici. Il lavoro è completato quando makeSemanticTokens usa la stessa legenda costruita da inferServerCapabilities; la gestione dei tipi di token client non supportati è menzionata solo come possibile attività successiva.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Somewhat confusingly, LSP (the protocol) has two places where the token types appear for semantic tokens, in the client caps and server caps. The indices in the encoding of the tokens are relative to the legend provided by the server, not the client. For this library, this is constructed in inferServerCapabilities.
For the moment it makes more sense (to me) that makeSemanticTokens hard codes the legend as the same as constructed in inferServerCapabilities, if only to avoid confusion, and maybe discards tokens which are not supported by the client..
This is not that high priority, it just bit me (I was passing in the client caps, and it seemed to work for a while) and I thought it might be reasonable to make the API robust against user error.
- Lingua principale
- Haskell
- Stelle
- 426
- Fork
- 107
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/lsp
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
Optimize `instance Eq NormalizedFilepath`?!Forse già presa @sjakobi l’ha presa 381 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Improve snippet sanitizationApertaZuriHac
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·