Open SimonCockx opened 1 year ago
From this thread:
The culprit is monaco-editor-textmate (wireTMGrammars), specifically this line of code.
When I wrote that code I wasn't very experienced with monaco.* API's so I did what I could at the time. Later I discovered someone's code and it blew me away!
The saviour is this write here:
editorInstance._themeService.getTheme().tokenTheme._match('punctuation.directive')
@zikaari Does this mean there is a general solution?
Also related: https://github.com/zikaari/monaco-editor-textmate/issues/3
@zikaari You state here that the issue is resolved in monaco-editor. However, according to this line, scopes are still represented as a single string
. Or am I missing something?
According to this line in
wireTmGrammars
, this library (or Monaco in general, I suppose) currently doesn't support multiple scopes.Will there be support in the future?
Is there currently a way to work around it?