New tokens format & theme matching #17933
Conversation
- remove ILineTokens.actualStopOffset - remove stopAtOffset - refactor MonarchLexer
# Conflicts: # src/vs/editor/contrib/suggest/common/snippetCompletion.ts # src/vs/editor/node/textMate/TMSyntax.ts
|
@alexandrudima So all tokens are now hidden behind This merge has caused an issue displaying key-value pairs with different colors, but without being able to see the new tokens I have no way to address it in tmThemes or custom grammars. |
|
@joshpeng You can use https://marketplace.visualstudio.com/items?itemName=siegebell.scope-info to see a hover with the scope hierarchy at the given position. |
|
@aeschli Thanks for the extension link, but this extension seems to only show the original VSC scopes. It doesn't seem to be capable of showing scopes from custom grammar extensions. |
|
Before we could piggy back off of VS Code's |
|
@aeschli @joshpeng Please use This will show you the token you are on and three sections:
|
|
@joshpeng scope-info should work for custom grammar extensions, but if conflicting grammars are provided by multiple extensions or vscode, then I bet it is picking the wrong one. With |

Fixes #11597
Fixes #16206
Fixes #3008
TODO:
ViewLineTokenmodel.getMode()andmodel.getModeId()LanguageIdentifier.sidandLanguageIdentifier.iidtokenclass name from every tokenstandaloneColorServicecheck editor with bootstrap css(created follow up task)vscode-textmatevscode-textmatevscode-textmatedomlayer breaker fromTMSyntax.ts