-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberIssue has been confirmed by VS Code Team membergood first issueIssues identified as good for first-time contributorsIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesworkbench-cliVS Code Command line issuesVS Code Command line issues
Milestone
Description
Type: Bug
vscode can't open file when file's name contains zero width chars.
env:
windows 10
python3.12.1
Setp1
create a fold which name testDemo.
mkdir testDemo
Setp2
run this python3 script to create a c.txt file:
# encoding: utf-8
from pathlib import Path
if __name__ == "__main__":
Path("\ufeffc.txt").write_text("this is test file", encoding="utf-8")Setp3
open testDemo fold by vscode
Setp4
click c.txt file on vscde , then vscode will show a error dialog like :
VS Code version: Code 1.101.0 (dfaf441, 2025-06-11T15:00:50.123Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.78GB (16.82GB free) |
| Process Argv | testDemo --crash-reporter-id 692a477b-bf45-428a-b0f6-405ec06a6b86 |
| Screen Reader | no |
| VM | 29% |
Extensions (48)
| Extension | Author (truncated) | Version |
|---|---|---|
| tongyi-lingma | Ali | 2.5.12 |
| vscode-django | bat | 1.15.0 |
| better-json5 | Blu | 1.4.0 |
| dart-code | Dar | 3.112.0 |
| flutter | Dar | 3.112.0 |
| vscode-eslint | dba | 3.0.10 |
| githistory | don | 0.6.20 |
| python-extension-pack | don | 1.7.0 |
| vscode-html-css | ecm | 2.0.13 |
| vscode-firefox-debug | fir | 2.15.0 |
| Fitten-Code | Fit | 0.10.148 |
| code-runner | for | 0.12.2 |
| vscode-sshfs | Kel | 1.26.1 |
| rainbow-csv | mec | 3.19.0 |
| git-graph | mhu | 1.30.0 |
| vscode-language-pack-zh-hans | MS- | 1.101.2025061109 |
| vscode-edge-devtools | ms- | 2.1.9 |
| playwright | ms- | 1.1.15 |
| black-formatter | ms- | 2025.2.0 |
| debugpy | ms- | 2025.8.0 |
| isort | ms- | 2025.0.0 |
| python | ms- | 2025.6.1 |
| vscode-pylance | ms- | 2025.6.1 |
| jupyter | ms- | 2025.5.0 |
| jupyter-keymap | ms- | 1.1.2 |
| jupyter-renderers | ms- | 1.1.0 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-jupyter-powertoys | ms- | 0.1.1 |
| remote-containers | ms- | 0.417.0 |
| remote-ssh | ms- | 0.120.0 |
| remote-ssh-edit | ms- | 0.87.0 |
| remote-wsl | ms- | 0.99.0 |
| vscode-remote-extensionpack | ms- | 0.26.0 |
| cmake-tools | ms- | 1.20.53 |
| cpptools | ms- | 1.25.3 |
| cpptools-extension-pack | ms- | 1.3.1 |
| hexeditor | ms- | 1.11.1 |
| live-server | ms- | 0.4.15 |
| makefile-tools | ms- | 0.12.17 |
| powershell | ms- | 2025.0.0 |
| remote-explorer | ms- | 0.5.0 |
| remote-server | ms- | 1.5.2 |
| vsliveshare | ms- | 1.0.5948 |
| material-icon-theme | PKi | 5.23.0 |
| LiveServer | rit | 5.7.9 |
| coding-copilot | Ten | 3.1.20 |
| JavaScriptSnippets | xab | 1.8.0 |
| markdown-pdf | yza | 1.5.0 |
(1 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
bajee813:31263137
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
pythonpulldiag:31325930
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
he899328:31327032
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberIssue has been confirmed by VS Code Team membergood first issueIssues identified as good for first-time contributorsIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesworkbench-cliVS Code Command line issuesVS Code Command line issues
