-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config for semantic-tokens-plugin for mapping from hs token type …
…to LSP default token type (#3940) * add config for semantic tokens for mapping between hs token type to LSP default token type * fix Missing features header * Delete plugins/hls-semantic-tokens-plugin/test/testdata/TDatatype.hs * Delete plugins/hls-semantic-tokens-plugin/test/testdata/TDatafamily.hs * Delete plugins/hls-semantic-tokens-plugin/test/testdata/TPatternsyn.hs * update doc * fix ghc96 schema generation * remove typedata and add ghc98 scheme generation test file * Ajust case in mappings * add ghc92 generate scheme * add ghc94 generate scheme * cleanup * modify the lspTokenReverseMap to take semantic config * rename fromLspTokenType to lspTokenTypeHsTokenType * add description for semantic tokens mappings config * fix doc and cleanup * delete content for /test/testdata/schema for now, since we are modifying the configuration * semantic config keys use lower case in the first element * add config generation scheme test * fix config generation scheme test * ajust names for semantic tokens * add token suffix to token type configuration * cleanup * fix merge
- Loading branch information
Showing
38 changed files
with
2,996 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 56 additions & 52 deletions
108
plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens/Internal.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.