microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.07k stars 28.8k forks source link

"vscode://" URL protocol does not open files in VS Code latest version on macOS #197798

Closed pisoni-onshape closed 10 months ago

pisoni-onshape commented 10 months ago

Type: Bug

With the latest version (1.84.1), browser links with the vscode:// protocol don't open files in VS Code anymore on macOS. The already open instance of VS Code does get 'focus' when you click such a link in browser, but the file does not get opened. It was working with the previous version.

VS Code version: Code 1.84.1 (Universal) (2b35e1e6d88f1ce073683991d1eff5284a32690f, 2023-11-06T12:37:18.666Z) OS version: Darwin x64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|6, 8, 12| |Memory (System)|32.00GB (4.68GB free)| |Process Argv|--crash-reporter-id 72bcb468-485d-44c8-95d4-0d4ecf689e27| |Screen Reader|no| |VM|0%|
Extensions (50) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.4.2 ng-template|Ang|17.0.0 clipboard-history|Anj|1.0.7 bracket-select|chu|2.0.2 glsl-canvas|cir|0.2.15 vscode-mac-color-picker|dae|1.1.0 vscode-quick-select|dba|0.2.9 gitlens|eam|14.4.1 clipboard-manager|Edg|1.5.0 vscode-firefox-debug|fir|2.9.10 glsl-snippets|j0h|0.0.1 dependency-cleaner|jac|1.0.4 tws|jki|1.0.1 bash-ide-vscode|mad|1.39.0 render-crlf|med|1.7.1 jscs-formatter|moo|0.1.1 vscode-glsl-linter|mrj|1.2.0 csharp|ms-|2.9.20 vscode-dotnet-runtime|ms-|2.0.0 isort|ms-|2023.10.1 python|ms-|2023.20.0 vscode-pylance|ms-|2023.11.10 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cmake-tools|ms-|1.15.31 cpptools|ms-|1.18.1 cpptools-extension-pack|ms-|1.3.0 js-debug-nightly|ms-|2023.11.717 powershell|ms-|2023.8.0 vscode-typescript-next|ms-|5.4.20231107 vetur|oct|0.37.3 vscode-circular-dependencies-finder|ole|1.1.0 vscode-community-server-connector|red|0.26.14 vscode-rsp-ui|red|0.24.9 shader|sle|1.1.5 code-spell-checker|str|3.0.1 dependencygraph|sz-|1.1.11 vscode-h2o|tet|0.2.15 shellcheck|tim|0.34.0 cmake|twx|0.0.17 vscode-lldb|vad|1.10.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-gradle|vsc|3.13.3 vscode-java-debug|vsc|0.55.0 vscode-java-dependency|vsc|0.23.2 vscode-java-pack|vsc|0.25.15 vscode-maven|vsc|0.43.0 volar|Vue|1.8.22 local-history|xyz|1.8.1 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30880073 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30882110 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 synctok:30869157 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30871694 pythonregdiag2cf:30871583 pyreplss2:30879913 pythonmypyd1:30879173 pythoncet0:30874138 pythontbext0:30879054 dsvsc018:30880894 aa_t_chat:30882232 ```
VSCodeTriageBot commented 10 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

pisoni-onshape commented 10 months ago

@bpasero @ulugbekna : Which is the duplicate issue that you have identified? Generally when an issue is closed as 'duplicate' it's linked to its duplicate, which I don't see on this page.

bpasero commented 10 months ago

@pisoni-onshape its https://github.com/microsoft/vscode/issues/197319. And a workaround is to use correct protocol links, i.e. ones that do not have double / before the file path.