False C# syntax errors and red squiggles when viewing pull request diffs
I maintainer di solito rispondono entro 1 giorno
@alexr00 ci sta già lavorando.
Dal 8/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Type: Bug
Steps to Reproduce
- Open a project containing Blazor
.razorfiles in VS Code. - Open the GitHub Pull Requests extension.
- Check out or open a pull request.
- Navigate to a modified
.razorfile in the pull request. - Open the file in the side-by-side diff editor.
Actual Behavior
The diff editor displays red squiggly lines across almost every line of code on both sides of the comparison.
The Problems panel also reports numerous C# syntax errors, primarily CS1025: Single-line comment or end-of-line expected, even on valid code and comments.
This makes reviewing changes extremely difficult because the error indicators obscure the actual differences.
Expected Behavior
The pull request diff viewer should display .razor files with proper syntax highlighting and without false C# diagnostics.
Additional Information
The issue appears to be related to how Razor/C# language diagnostics are handled when files are opened through the GitHub Pull Requests diff viewer.
Extension version: 0.168.0
VS Code version: Code 1.141.0 (2a59476c9bfcb90b3ddc372c36762471b7dfad1c, 2026-10-06T10:15:52+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 9 5900X 12-Core Processor (24 x 3700) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x10de, DEVICE=0x2216 [NVIDIA GeForce RTX 3080], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.16.1692 ACTIVE GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9278 Machine model name: Machine model version: direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.92GB (11.00GB free) |
| Process Argv | --crash-reporter-id 580ce9a9-7f50-4d07-8f93-5a6815efa311 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
core-renderer-profiling-on:31440367
e9c30283:31461165
c9b86496:31447327
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
2d1bi976:31596492
i2gc6536:31499202
52612955:31516516
ddid_c:31478207
hmra_i5g22:31518061
ja75b849:31592442
7df3h592:31512476
cp_cls_t_1082:31535311
b5d32f0b:31595862
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
a1ije391_t:31540920
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ahp-both-windows:31556933
ihg5j128:31534457
7g2b5551:31542111
enable_editor_pane_layout:31569726
allow-none:31555437
ac562147:31564510
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-mark-done:31591648
multi-root:31593626
5b8j3302:31564601
autotiers:31584978
mangle-name-control:31572633
allow-signed-out:31592042
b17abb00-cfec-4134-90da-ee5e32ce4426:31589248
intellij_nes_preview_t:31580086
multiv2:31574985
0ec91c74:31585910
links-treatment:31596176
aw-autom-on:31583758
usage_tips_endabled_0911:31587631
7g328426_fixed:31595622
codex-agent-host-stable-editor:31596219
0485115c-2712-4002-b6e9-b5d4e30fb963:31595629
sessioninlinediffenabled_enabled:31587635
welcomesignin9359c:31590009
e6882f69-f5cc-4f90-9073-69a4ca3e50ea:31589215
d6a5dc66-a24d-4215-bf31-317b28ac768a:31589212
0915b77b-4632-4fb2-9377-b5640c1e9623:31593888
jb0cf204:31592432
57iha306:31595867
9hh48893:31595853
msft-auth-on:31593345
permission_prompt_treatment:1332566
ccr_pr_nudge_control:1319470
vsc_wsm_t:1340632
g03gg798:1417072
cfee5631:1379228
sem_714gi995:1401462
jc553158:1433349
cmc_aa_c:1435710
plus-and-new:1447760
seataa-998bffad:1447867
- Lingua principale
- TypeScript
- Stelle
- 2.6k
- Fork
- 800
- Merge medio
- 22h 52m
- PR unite (30g)
- 39
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/vscode-pull-request-github
-
PR overview remains stuck checking mergeability after an UNKNOWN responseForse già presa @alexr00 l’ha presa 8 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/vscode-pull-request-github#8953 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Issue 3 — DocumentationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/vscode-pull-request-github#8792 ·
I maintainer di solito rispondono entro 1 giorno
-
Enable "Open original file" for deleted filesForse già presa @alexr00 l’ha presa 1 giorno fa. Aperta
microsoft/vscode-pull-request-github#9030 · 1 reazione · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Copilot PR-state polling throws RangeError: Invalid array length while accumulating paginated resultsForse già presa @alexr00 l’ha presa 2 giorni fa. Apertabug
microsoft/vscode-pull-request-github#9023 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Issue links in overview HTML are emitted with an extra quote in hrefForse già presa @alexr00 l’ha presa 2 giorni fa. Apertabug
microsoft/vscode-pull-request-github#9022 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/vscode-pull-request-github
Issue simili
-
First unknown-user login after boot is one scrypt run slower than a real user's wrong passwordApertaarea: backend bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
snapotter-hq/SnapOtter#2254 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ticket
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
cratestack/cratestack#1154 ·
I maintainer di solito rispondono entro 1 giorno
-
server 消息处理器 cmd 分支补显式错误回报——竞态非法命令现走未处理拒绝Forse già presa @openaddr l’ha presa oggi. Apertaready-for-agent refactor wayfinder:task
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openaddr/dafung-web#428 ·
I maintainer di solito rispondono entro 1 giorno
-
Flaky: mongodb-memory-server 'Port already in use' when another process starts a mongod concurrentlyApertaarea:testing bug effort:S priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
lens:agent lens:process process
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
thebristolsound/birdbrain#1772 ·
I maintainer di solito rispondono entro 1 giorno