Skip to content

add config for semantic-tokens-plugin for mapping from hs token type to LSP default token type #3940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6ec4ac9
add config for semantic tokens for mapping between hs token type to L…
soulomoon Jan 10, 2024
c92429c
fix Missing features header
soulomoon Jan 10, 2024
d6ee095
Delete plugins/hls-semantic-tokens-plugin/test/testdata/TDatatype.hs
soulomoon Jan 10, 2024
0183de1
Delete plugins/hls-semantic-tokens-plugin/test/testdata/TDatafamily.hs
soulomoon Jan 10, 2024
63dc0a2
Delete plugins/hls-semantic-tokens-plugin/test/testdata/TPatternsyn.hs
soulomoon Jan 10, 2024
5e0208c
update doc
soulomoon Jan 10, 2024
03b7964
fix ghc96 schema generation
soulomoon Jan 10, 2024
2d3eaaa
remove typedata and add ghc98 scheme generation test file
soulomoon Jan 10, 2024
04fe4ac
Ajust case in mappings
soulomoon Jan 10, 2024
fc1b95e
add ghc92 generate scheme
soulomoon Jan 10, 2024
95a9857
add ghc94 generate scheme
soulomoon Jan 10, 2024
c80e9fc
cleanup
soulomoon Jan 10, 2024
6acd8a3
modify the lspTokenReverseMap to take semantic config
soulomoon Jan 11, 2024
558c323
rename fromLspTokenType to lspTokenTypeHsTokenType
soulomoon Jan 11, 2024
dab0a2b
add description for semantic tokens mappings config
soulomoon Jan 11, 2024
e85366f
fix doc and cleanup
soulomoon Jan 11, 2024
6653b03
delete content for /test/testdata/schema for now, since we are modify…
soulomoon Jan 11, 2024
4d11ac7
semantic config keys use lower case in the first element
soulomoon Jan 12, 2024
3819567
add config generation scheme test
soulomoon Jan 12, 2024
fe0be7c
fix config generation scheme test
soulomoon Jan 12, 2024
dfc458b
ajust names for semantic tokens
soulomoon Jan 12, 2024
8915d06
Merge remote-tracking branch 'upstream/master'
soulomoon Jan 13, 2024
dca6875
add token suffix to token type configuration
soulomoon Jan 13, 2024
897e0d3
cleanup
soulomoon Jan 13, 2024
da8e955
Merge branch 'master' into master
soulomoon Jan 13, 2024
0e9eb0c
Merge branch 'master' into master
soulomoon Jan 14, 2024
b6825a2
fix merge
soulomoon Jan 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix config generation scheme test
  • Loading branch information
soulomoon committed Jan 12, 2024
commit fe0be7cfcdd5ae79aba1ffe8614f081c72b63657
886 changes: 886 additions & 0 deletions config.vscode

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions test/testdata/schema/ghc92/default-config.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@
"globalOn": true
},
"semanticTokens": {
"config": {
"class": "class",
"classMethod": "method",
"dataCon": "enumMember",
"function": "function",
"patternSyn": "macro",
"recField": "property",
"typeCon": "enum",
"typeFamily": "interface",
"typeSyn": "type",
"typeVariable": "typeParameter",
"variable": "variable"
},
"globalOn": false
},
"splice": {
Expand Down
Loading