Skip to content
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

Support for multiple scopes #24

Open
SimonCockx opened this issue Jan 12, 2023 · 2 comments
Open

Support for multiple scopes #24

SimonCockx opened this issue Jan 12, 2023 · 2 comments

Comments

@SimonCockx
Copy link

SimonCockx commented Jan 12, 2023

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?

@SimonCockx
Copy link
Author

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?

@SimonCockx
Copy link
Author

Also related: #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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant