-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vscode://file// links no longer working #197319
Comments
To add more confusion to things, after ten minutes of behaving the way I described, VS Code started correctly opening these links. There must be some kind of intermittent bug, but I don't know how to reproduce it. Let me know if you have anything you'd like me to try on my machine. |
@jonsterling we did change something in that area, see https://code.visualstudio.com/updates/v1_84#_confirmation-for-opening-protocol-links I wonder why you would not see a dialog opening. Do you have VS Code running with no window opened maybe? A similar issue was reported in #197263 |
waa. same here! I get the dialog that asks me to confirm to open the link in vscode but then vscode flickers once and does nothing. this is really an issue for me so I'd be grateful for a quick fix 🤯 |
I need to know if everyone sees the dialog and then it does not work or if some people do not see the dialog and some do and then it still does not work? |
Also, can people try to reproduce in insiders? |
For what it’s worth, i think i did not see the dialog. On Nov 3, 2023, at 5:47 PM, Benjamin Pasero ***@***.***> wrote:
I need to know if everyone sees the dialog and then it does not work or if some people do not see the dialog and some do and then it still does not work?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Please see if you can find any logged output that could help us find the source of the issue:
Thanks! |
I just realised: URLs of the form |
@bpasero That's a good catch! I'll make sure to fix my tool that is producing these bad links. But I think it is certainly not acceptable to close the ticket on this basis, for the following reasons:
Therefore, it is clear that more investigation is required, as all signs point to my invalid URIs as being a red herring and there still being a legitimate bug. (Especially considering the fact that you have changed code in this area recently.) For that reason, I expect you will re-open this ticket... |
I've had file// links instead of file/ - it seems that everything is working again now :) |
Yeah, there is changes needed in VS Code, esp. since now the behaviour is different between having the confirmation setting enabled or not. I understand now how we are able to support even invalid URL like that because we process each path to open and normalise it, that probably removes the double slashes: vscode/src/vs/base/common/extpath.ts Line 269 in e356419
Nevertheless, if you can change your tool to produce correct URLs, that would help people until the fix has landed 👍 |
@bpasero Thanks! I've now fixed my tool to produce the correct links. |
This bug has been fixed in the latest release of VS Code Insiders! @jonsterling, you can help us out by commenting If things still don't seem right, please ensure you're on version c97d74f of Insiders (today's or later - you can use Happy Coding! |
/verified Everything is working correctly now! I can't say for sure that it is fixed because I could not reliably reproduce the bug before, but I trust that the change has solved the problem. Will follow up later if I encounter any other issues. thanks very much for your quick attention to this issue! |
@bpasero How can I find out when this fix will hit a stable release? (My team uses |
Our next stable release will happen in the first week of December. To clarify: this is a bug in the application that produces these links, so maybe its easier to fix the application that produces the links. |
Ah understood. I wasn’t sure if this’d go in a minor release. Thanks!
…On Fri, Nov 10, 2023 at 7:09 AM Benjamin Pasero ***@***.***> wrote:
Our next stable release will happen in the first week of December.
To clarify: this is a bug in the application that produces these links, so
maybe its easier to fix the application that produces the links.
—
Reply to this email directly, view it on GitHub
<#197319 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEL6FFJYNC5KMGYNXVNYITYDYYRPAVCNFSM6AAAAAA64BF6YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVHAYDSNJYGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The format of links for vscode is currently set to: vscode://file/{$file}:{$line} This leads to URIs such as: vscode://file//Users/example/git/example.php However vscode expects URIs in the format: vscode://file/Users/example/git/example.php That is to say that the URI should be immediately after the `file`. The correct URI format is: vscode://file{$file}:{$line} See microsoft/vscode#197319 for more information.
It's worth noting that the documentation for this feature is not entirely clear. https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls The documentation state:
However on a *nix-like system the I would argue that this is therefore not a bug in the generating code, but actually in vscode (which is now fixed). Whilst working around this in the generating code is possiblem I would suggest that it is not correct in the long term. |
do not see the dialog |
Type: Bug
All of a sudden,
vscode://file//
links are no longer working.Expected behavior:
I click open a link like
vscode://file//path-to-a-file-that-really-exists
and it then VS Code opens the file. This has always worked for me.Actual behavior:
I click open a link like
vscode://file//path-to-a-file-that-really-exists
and it then VS Code becomes focused, but it does not open the desired file.Please note that I have verified that the file really does exist in the specified path.
VS Code version: Code 1.84.0 (Universal) (d037ac0, 2023-11-01T11:30:19.406Z)
OS version: Darwin arm64 23.0.0
Modes:
System Info
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: