Open loganlifts opened 3 months ago
@bpasero This seems similar to https://github.com/microsoft/vscode/issues/73101 and the latter was fixed by adding a new workbench contribution that blocks the startup and caches the urls
Root cause seems to be that url handlers which are registered later are not being called by the main.
Edit: I would prefer not to follow the above approach for opening extension url handlers. I suggest main
to wait until workbench is ready to handle the URLs
I do not see a problem with the work that @joaomoreno did with the bootstrap script for caching URLs except for these lines:
We return early here because authority
is ""
. At least with the links from the marketplace.
Steps:
scripts/code-cli.sh --open-url code-oss:extension/ms-vscode.vscode-speech
This works fine if a window is opened or VS Code is not running, so I suspect we only have a bug in the lines above.
@joaomoreno can you check?
Oh nevermind, looks like we have 2 handlers for extension URLs, one to open the extension page for installation and one for forwarding a request to an extension. Looks like what I found above is for the latter.
What needs to be fixed is this one:
Idea: when open
is called we cache URIs that have not been handled and dispatch when registerHandler
is called:
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
This does not occur if I keep a VS Code application window open or if I exit the application entirely before clicking install from the browser.