-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
getShellEnvironment might never finish #24435
Comments
Yes, ideally the resolving of the environment finishes without errors and in a timely fashion. The current implementation is done like that because we statically reference
We don't need to. |
The fix will be to log an error to the console and to simply continue with a potential incomplete environment |
The
|
Timeout apparently wasn't the way to go |
Increased the timeout to 10s. Let's add some perf numbers to know exactly how long does the renderer wait for that env to come. |
During load of the window we actually stop any loading when we call into
process.lazyEnv
and if there is any error during this call, we just get an empty window presented (as reported by many users in #23639).There are multiple problems:
process.env['VSCODE_CLI']
is set so I would expect we can skip this call on the renderer side and save us the inter process communication on startup in those casesThe text was updated successfully, but these errors were encountered: