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

editor.maxTokenizationLineLength is not used leading to bogus coloring #7617

Closed
akosyakov opened this issue Apr 20, 2020 · 4 comments · Fixed by #7618
Closed

editor.maxTokenizationLineLength is not used leading to bogus coloring #7617

akosyakov opened this issue Apr 20, 2020 · 4 comments · Fixed by #7618
Assignees
Labels
bug bugs found in the application monaco issues related to monaco

Comments

@akosyakov akosyakov added bug bugs found in the application monaco issues related to monaco labels Apr 20, 2020
@akosyakov akosyakov self-assigned this Apr 20, 2020
akosyakov added a commit that referenced this issue Apr 20, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit that referenced this issue Apr 20, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit that referenced this issue Apr 20, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@melaasar
Copy link

melaasar commented Apr 20, 2020

Do I need to change something in the oml-vscode extension or in the opencaesar/vocabularies repo to get this fix?

@akosyakov
Copy link
Member Author

akosyakov commented Apr 21, 2020

@melaasar Hi 👋 We limit tokenisation to max 400 characters by default since it can hang the browser for big files. But a user can change this default with editor.maxTokenizationLineLength preference. VS Code is using 20000 characters but they are running natively on desktop, so performance it is better. You don't need to change anything in the extension.

@melaasar
Copy link

Thanks. I went ahead and added a workspace setting file where I added a value of 800 to editor.maxTokenizationLineLength:
https://github.com/opencaesar/vocabularies/blob/master/.theia/settings.json

However, when I start a new workspace, and browse to https://github.com/opencaesar/vocabularies/blob/master/src/imce.jpl.nasa.gov/foundation/base.oml
I still see the issue at line 5 (not colored properly) because the token at line 4 is long despite it now being shorter than 800 limit. If I try to split the "..." token on line 4 across 2 lines, even by just putting the ending " on the next line, then the color problem goes away.

@akosyakov
Copy link
Member Author

@melaasar It was not deployed to Gitpod yet. It was only merged for Theia. Check out it tomorrow or on Friday maybe it will be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application monaco issues related to monaco
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants