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

Open
#238 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
vscode
Domain
tooling

Research direction

Start with the linked example.txt and reproduce the slowdown in VS Code 1.65 stable or 1.66 insiders using the C# syntax grammar. Compare behavior with the long string literal and embedded JSON; done means the reported grammar-induced lag is understood and no longer occurs, with the result verified in the affected editor versions.

Written by the indexing model from the issue text.

Description

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 https://github.com/microsoft/vscode/issues/145876.

Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/csharp-tmLanguage

All issues in dotnet/csharp-tmLanguage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.