False C# syntax errors and red squiggles when viewing pull request diffs
Maintainer thường phản hồi trong vòng 1 ngày
@alexr00 đang làm issue này rồi.
Từ ngày 8/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 800
- Merge trung bình
- 22 giờ 52 phút
- Pull request đã merge (30 ngày)
- 39
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-pull-request-github
-
PR overview remains stuck checking mergeability after an UNKNOWN responseCó thể đã có người làm @alexr00 đã nhận 8 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/vscode-pull-request-github#8953 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue 3 — DocumentationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/vscode-pull-request-github#8792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enable "Open original file" for deleted filesCó thể đã có người làm @alexr00 đã nhận 1 ngày trước. Đang mở
microsoft/vscode-pull-request-github#9030 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Copilot PR-state polling throws RangeError: Invalid array length while accumulating paginated resultsCó thể đã có người làm @alexr00 đã nhận 2 ngày trước. Đang mởbug
microsoft/vscode-pull-request-github#9023 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue links in overview HTML are emitted with an extra quote in hrefCó thể đã có người làm @alexr00 đã nhận 2 ngày trước. Đang mởbug
microsoft/vscode-pull-request-github#9022 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/vscode-pull-request-github
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
siyuan-note/siyuan#20313 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
alunduil/projects-v2-sync#14 ·
-
Service process inherits the caller's cwd at first use, holding that folder open on Windows (EBUSY)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
DevTools page styles leak into the host app in developmentCó thể đã có người làm @onmax đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nuxt-modules/better-auth#567 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày