-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
chore: update to electron 9-x-y #102011
chore: update to electron 9-x-y #102011
Conversation
src/vs/workbench/contrib/welcome/telemetryOptOut/browser/telemetryOptOut.ts
Show resolved
Hide resolved
One thing I forgot: we need to offer the user a transition path if the user has configured the crash reporter to be disabled in settings. E.g. we could check this setting on startup and update the |
Converting to draft, please ping when ready for final reivew. |
@bpasero I have addressed the feedback, only work left is to accept the crash reporter extra parameters in the appcenter backend. PR in general is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides my comments in code, what is the plan to transition users to argv.json
that today have the crash reporter disabled in settings?
src/vs/workbench/contrib/welcome/telemetryOptOut/browser/telemetryOptOut.ts
Show resolved
Hide resolved
src/vs/workbench/services/extensions/electron-browser/localProcessExtensionHost.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/services/extensions/electron-browser/localProcessExtensionHost.ts
Show resolved
Hide resolved
@bpasero I have refactored the crashreporter implementation yet again due to some regressions/complexities faced during testing.
Have verified this to work for all 3 platforms and for all the processes we are interested in. |
4973bd8
to
7d2a02f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think we are getting to a nicer solution slowly. More feedback provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some quirks still, commented inline. Maybe it is easier we walk through the code together and you make some notes.
src/vs/workbench/services/extensions/electron-browser/localProcessExtensionHost.ts
Show resolved
Hide resolved
src/vs/workbench/contrib/welcome/telemetryOptOut/browser/telemetryOptOut.ts
Outdated
Show resolved
Hide resolved
src/vs/code/electron-main/app.ts
Outdated
const argvString = argvContent.value.toString(); | ||
const argvJSON = JSON.parse(stripComments(argvString)); | ||
if (argvJSON['enable-crash-reporter'] === undefined) { | ||
const enableCrashReporter = this.configurationService.getValue<boolean>('telemetry.enableCrashReporter'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this returns undefined
in the main process. Is it too early to check the value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak1556 configuration service in electron-main
has no defaults because they get registered in renderer only. @sandy081 might have an issue for that, but for now we have to fill in the default value manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is the limitation of using configuration service in non renderer process (main, shared). There could be an issue exists already but not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only few comments left, getting close 👍
@bpasero should be good to go, PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
bee1836
to
7bce18e
Compare
Internal builds with working devtools have been updated in |
@deepak1556 let me do the |
sounds good, feel free to merge the PR at your convenience. I am gonna sign-off for the day :) |
@@ -1,3 +1,3 @@ | |||
disturl "http://nodejs.org/dist" | |||
target "12.4.0" | |||
target "12.14.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexdima fyi not sure why remote
locked the dependency to 12.4.0
but it would now advance to the same as Electron 9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Maybe there was no node release with the same version number as the one used in Electron?
* chore: bump [email protected] * remove exploration config * fix compile error * fix compile error * crashReporter has to be called only once before app ready * chore: bump [email protected] * enable LayoutNG * fix cron schedule * allow disabling appcenter crash reporting * set additional crash reporting parameters * start crashreporter for child process on linux * setup crash parameters only once * remove unused crashReporter.guid * address review feedback * reuse argv.json for storing crash reporter id * remove trailing commas * update localized name * update argv based on telemetry optout * update initial config based on setting * fix conditional errors * remove telemetry.enableCrashReporter * move default crash reporter config to electron-main * update comment for ext host crash reporting * set default value for configuration * some 💄 changes * address review feedback * do not use ES7 features in JS yet * add app.focus({ steal: true }) usage Co-authored-by: Benjamin Pasero <[email protected]>
This reverts commit 3d0d50c.
* chore: bump [email protected] * remove exploration config * fix compile error * fix compile error * crashReporter has to be called only once before app ready * chore: bump [email protected] * enable LayoutNG * fix cron schedule * allow disabling appcenter crash reporting * set additional crash reporting parameters * start crashreporter for child process on linux * setup crash parameters only once * remove unused crashReporter.guid * address review feedback * reuse argv.json for storing crash reporter id * remove trailing commas * update localized name * update argv based on telemetry optout * update initial config based on setting * fix conditional errors * remove telemetry.enableCrashReporter * move default crash reporter config to electron-main * update comment for ext host crash reporting * set default value for configuration * some 💄 changes * address review feedback * do not use ES7 features in JS yet * add app.focus({ steal: true }) usage Co-authored-by: Benjamin Pasero <[email protected]>
Co-authored-by: Benjamin Pasero <[email protected]>
Fixes #100740
Fixes #98400
Fixes #101069
Fixes #88873
Fixes #78867
Also fixes https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afixed-in-electron-8
TODO