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
Windows: protocol handler opens a new window and not existing window #142685
Comments
Related to #142666 |
I can only reproduce since we use Electron 16, so I suspect it is related. And it only reproduces on Windows for me. I am not so familiar with how we setup the protocol handler, code seems to be here:
Maybe we no longer pass the arguments properly to the instance? Could this be related to the request single instance lock changes from @rzhao271 ? |
request single instance lock exercises different code path than the protocol handler, so that change definitely shouldn't have an impact here.
Considering this error, looks like the arg is incorrectly parsed. Not sure if its the runtime that is returning the bad argument, will check. |
I would expect this place to be the location where we handle the URI: vscode/src/vs/code/electron-main/app.ts Lines 819 to 833 in 01df559
I added some logging at that place. |
Probably same as electron/electron#32463 which was reported against Electron. |
This issue affects GitHub and Microsoft authentication flows, unfortunately so users will not be able to sign in at all until this is sorted. Just wanted to leave this context here as I will point others to this issue. |
Is MS Authenticator affected? I think it's "self hosted" server, so no app schema handlers should be triggered. |
True, @IllusionMH. Using the protocol handler is only done in Microsoft Auth if spinning up that server you mention doesn't work which should be relatively rare... so in auth world this mostly affects GitHub auth. Unfortunately, GitHub auth is used more than Microsoft auth. |
Oh, nice to know. I stand corrected. |
Will be fixed in today's insider Refs https://domoreexp.visualstudio.com/Teamspace/_git/electron-build/pullrequest/479313 |
I verified that this isn't happening anymore, however, since it was related to the electron update and we've deferred that to March, I will move this out to March for true verification. |
Issue Type: Bug
With this release, invocations of vscode-insiders:// links always result in a new instance of VS Code opening, and vscode.window.registerUriHandler registrations in the new instance never getting called.
I also see an error of:
Warning: 'open-url --' is not in the list of known options, but still passed to Electron/Chromium.
when doing system invocations of vscode-insiders://
This breaks the extension I own as it uses the URI hanlder to notify the extension from cmdlet actions in the terminal.
VS Code version: Code - Insiders 1.65.0-insider (d09aeab, 2022-02-09T05:16:17.063Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (16)
A/B Experiments
The text was updated successfully, but these errors were encountered: