VSCode hangs with 100% CPU in Code Helper process when viewing specific file

Open
#76 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, typescript
Domain
tooling

Research direction

Reproduce the hang by downloading MiniParser.cs, opening its directory with VS Code, and opening the file. Start by examining the C# syntax grammar used for colorization; done means opening MiniParser.cs no longer makes the Code Helper process consume 100% CPU or causes the window to become unresponsive.

Written by the indexing model from the issue text.

Description

Bug

From @akoeplinger on June 23, 2017 12:8

  • VSCode Version: Code 1.13.1 (379d2efb5539b09112c793d3d9a413017d736f89, 2017-06-14T18:13:05.928Z)
  • OS Version: Darwin x64 16.6.0
  • Extensions:
Extension Author Version
vscode-markdownlint DavidAnson 0.9.1
vscode-docker PeterJausovec 0.0.16
sort-lines Tyriar 1.3.0
githistory donjayamanne 0.2.0
python donjayamanne 0.6.5
cpptools ms-vscode 0.11.4
csharp ms-vscode 1.10.0
mono-debug ms-vscode 0.15.6
Ruby rebornix 0.12.1

Steps to Reproduce:

  1. mkdir vscodehang && cd vscodehang
  2. wget https://raw.githubusercontent.com/mono/mono/c7b19b52fd671233cf2daab451f09c7591c859b1/mcs/class/Mono.Security/Mono.Xml/MiniParser.cs
  3. code .
  4. Open MiniParser.cs
  5. VSCode gets unresponsive and offers to reopen window

Copied from original issue: Microsoft/vscode#29319

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.