dotnet / dotnet/csharp-tmLanguage

VSCode crashes when pasting this very long line C# code

Aperta
#176 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
TypeScript
Stelle
78
Fork
43
Merge medio
34m
PR unite (30g)
1

Descrizione

From @NearHuscarl in https://github.com/microsoft/vscode/issues/91200

VS Code Version: 1.42.1
OS: Windows 10

Steps to Reproduce:

1. Open VSCode using `code --disable-extensions`
2. Open a C# file
3. Paste this line of code

```c#
if (other.m_navigationMode == this.m_navigationMode && other.m_eliminateEnemies == this.m_eliminateEnemies && (other.m_searchForItems == this.m_searchForItems && other.m_searchItems == this.m_searchItems) && ((int)other.m_chokePointPlayerCountThreshold == (int)this.m_chokePointPlayerCountThreshold && (double)other.m_chokePointValue == (double)this.m_chokePointValue && ((double)other.m_defensiveAvoidProjectilesLevel == (double)this.m_defensiveAvoidProjectilesLevel && (double)other.m_defensiveBlockLevel == (double)this.m_defensiveBlockLevel)) && ((double)other.m_counterOutOfRangeMeleeAttacksLevel == (double)this.m_counterOutOfRangeMeleeAttacksLevel && (double)other.m_defensiveRollFireLevel == (double)this.m_defensiveRollFireLevel && (other.m_meleeUsage == this.m_meleeUsage && other.m_meleeWeaponUsage == this.m_meleeWeaponUsage) && (other.m_meleeWeaponUseFullRange == this.m_meleeWeaponUseFullRange && other.m_rangedWeaponUsage == this.m_rangedWeaponUsage && ((double)other.m_seekCoverWhileShooting == (double)this.m_seekCoverWhileShooting && other.m_rangedWeaponMode == this.m_rangedWeaponMode))) && (other.m_rangedWeaponLOSIgnoreTeammates == this.m_rangedWeaponLOSIgnoreTeammates && other.m_powerupUsage == this.m_powerupUsage && ((double)other.m_navigationRandomPausesLevel == (double)this.m_navigationRandomPausesLevel && (double)other.m_aggroRange == (double)this.m_aggroRange) && ((double)other.m_searchItemRange == (double)this.m_searchItemRange && (double)other.m_guardRange == (double)this.m_guardRange && ((double)other.m_chaseRange == (double)this.m_chaseRange && (double)other.m_offensiveClimbingLevel == (double)this.m_offensiveClimbingLevel)) && ((double)other.m_offensiveDiveLevel == (double)this.m_offensiveDiveLevel && (double)other.m_offensiveEnrageLevel == (double)this.m_offensiveEnrageLevel && ((double)other.m_offensiveSprintLevel == (double)this.m_offensiveSprintLevel && (double)other.m_rangedWeaponAccuracy == (double)this.m_rangedWeaponAccuracy) && ((double)other.m_rangedWeaponAimShootDelayMax == (double)this.m_rangedWeaponAimShootDelayMax && (double)other.m_rangedWeaponAimShootDelayMin == (double)this.m_rangedWeaponAimShootDelayMin && ((double)other.m_rangedWeaponHipFireAimShootDelayMax == (double)this.m_rangedWeaponHipFireAimShootDelayMax && (double)other.m_rangedWeaponHipFireAimShootDelayMin == (double)this.m_rangedWeaponHipFireAimShootDelayMin)))) && ((double)other.m_rangedWeaponBurstPauseMax == (double)this.m_rangedWeaponBurstPauseMax && (double)other.m_rangedWeaponBurstPauseMin == (double)this.m_rangedWeaponBurstPauseMin && ((double)other.m_rangedWeaponBurstTimeMax == (double)this.m_rangedWeaponBurstTimeMax && (double)other.m_rangedWeaponBurstTimeMin == (double)this.m_rangedWeaponBurstTimeMin) && ((double)other.m_rangedWeaponPrecisionInterpolateTime == (double)this.m_rangedWeaponPrecisionInterpolateTime && (double)other.m_rangedWeaponPrecisionAccuracy == (double)this.m_rangedWeaponPrecisionAccuracy && ((double)other.m_rangedWeaponPrecisionAimShootDelayMax == (double)this.m_rangedWeaponPrecisionAimShootDelayMax && (double)other.m_rangedWeaponPrecisionAimShootDelayMin == (double)this.m_rangedWeaponPrecisionAimShootDelayMin)) && ((double)other.m_rangedWeaponPrecisionBurstPauseMax == (double)this.m_rangedWeaponPrecisionBurstPauseMax && (double)other.m_rangedWeaponPrecisionBurstPauseMin == (double)this.m_rangedWeaponPrecisionBurstPauseMin && ((double)other.m_rangedWeaponPrecisionBurstTimeMax == (double)this.m_rangedWeaponPrecisionBurstTimeMax && (double)other.m_rangedWeaponPrecisionBurstTimeMin == (double)this.m_rangedWeaponPrecisionBurstTimeMin) && ((double)other.m_meleeWaitTimeLimitMin == (double)this.m_meleeWaitTimeLimitMin && (double)other.m_meleeWaitTimeLimitMax == (double)this.m_meleeWaitTimeLimitMax && (other.MeleeActions == this.MeleeActions && other.MeleeActionsWhenHit == this.MeleeActionsWhenHit))) && (other.MeleeActionsWhenEnraged == this.MeleeActionsWhenEnraged && other.MeleeActionsWhenEnragedAndHit == this.MeleeActionsWhenEnragedAndHit)))
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riprodurre su VS Code 1.42.1 in Windows 10 con le estensioni disabilitate: aprire un file C# e incollare la riga lunga fornita. Iniziare esaminando la grammatica di sintassi csharp-tmLanguage e determinare quale parte della riproduzione causa il crash; il lavoro è concluso quando lo stesso incolla non causa più il crash di VS Code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, typescript, vscode
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.