File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ lspTokenReverseMap config
55
55
where xs = enumFrom minBound
56
56
mr = Map. fromList $ map (\ x -> (toLspTokenType config x, x)) xs
57
57
58
- fromLspTokenType :: SemanticTokensConfig -> SemanticTokenTypes -> Maybe HsSemanticTokenType
59
- fromLspTokenType cf tk = Map. lookup tk (lspTokenReverseMap cf)
58
+ lspTokenTypeHsTokenType :: SemanticTokensConfig -> SemanticTokenTypes -> Maybe HsSemanticTokenType
59
+ lspTokenTypeHsTokenType cf tk = Map. lookup tk (lspTokenReverseMap cf)
60
60
61
61
-- * 2. Mapping from GHC type and tyThing to semantic token type.
62
62
@@ -172,7 +172,7 @@ recoverSemanticTokens config v s = do
172
172
-- the `SemanticTokensConfig` used should be a map with bijection property
173
173
lspTokenHsToken :: SemanticTokensConfig -> SemanticTokenOriginal SemanticTokenTypes -> SemanticTokenOriginal HsSemanticTokenType
174
174
lspTokenHsToken config (SemanticTokenOriginal tokenType location name) =
175
- case fromLspTokenType config tokenType of
175
+ case lspTokenTypeHsTokenType config tokenType of
176
176
Just t -> SemanticTokenOriginal t location name
177
177
Nothing -> error " recoverSemanticTokens: unknown lsp token type"
178
178
You can’t perform that action at this time.
0 commit comments