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

Grammar is slow on a line with a very long string literal (with embedded json) #238

Open
alexr00 opened this issue Mar 23, 2022 · 1 comment

Comments

@alexr00
Copy link

alexr00 commented Mar 23, 2022

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.)
VS Code

What version of the editor are you using?
1.66 insiders and 1.65 stable.

What color theme are you using?
N/A

Repro

This file has the issue - example.txt - although in the original it contained a bearer token, so I couldn't include verbatin - all chars replaced with x.

Originally reported by @kierenj in microsoft/vscode#145876.

@wise0704
Copy link
Contributor

wise0704 commented Sep 4, 2023

VSCode editor.maxTokenizationLineLength setting for C# is set to 2500 by default, and the line is 6920 long.

Increasing it to 10000 highlights the line immediately.
image

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

2 participants