-
Notifications
You must be signed in to change notification settings - Fork 6.3k
refactor: drop db migration patch #5519
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,13 @@ Index: code-server/lib/vscode/src/vs/workbench/services/telemetry/browser/teleme | |
- sendErrorTelemetry: this.sendErrorTelemetry, | ||
- }; | ||
- this.impl = this._register(new BaseTelemetryService(config, configurationService, productService)); | ||
- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @code-asher I refreshed all the patches. Does this look okay to you? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the blocks shifted a little, probably due to using a different diff algorithm, but I think it should be fine! Looks like I am using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uh...looks like I'm not using one? 😅 Reminds me of when I first started at Coder and Anmol/I were using different algorithms. Okay I will leave as is for now then and merge this! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah that probably means it is using the default ( |
||
- if (getTelemetryLevel(configurationService) !== TelemetryLevel.NONE) { | ||
- // If we cannot fetch the endpoint it means it is down and we should not send any telemetry. | ||
- // This is most likely due to ad blockers | ||
- fetch(telemetryEndpointUrl, { method: 'POST' }).catch(err => { | ||
- this.impl = NullTelemetryService; | ||
- }); | ||
+ const telemetryProvider: ITelemetryAppender | undefined = remoteAgentService.getConnection() !== null ? { log: remoteAgentService.logTelemetry.bind(remoteAgentService), flush: remoteAgentService.flushTelemetry.bind(remoteAgentService) } : productService.aiConfig?.ariaKey ? new OneDataSystemWebAppender(isInternal, 'monacoworkbench', null, productService.aiConfig?.ariaKey) : undefined; | ||
+ if (telemetryProvider) { | ||
+ appenders.push(telemetryProvider); | ||
|
@@ -114,13 +121,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/telemetry/browser/teleme | |
+ sendErrorTelemetry: this.sendErrorTelemetry, | ||
+ }; | ||
+ this.impl = this._register(new BaseTelemetryService(config, configurationService, productService)); | ||
|
||
- if (getTelemetryLevel(configurationService) !== TelemetryLevel.NONE) { | ||
- // If we cannot fetch the endpoint it means it is down and we should not send any telemetry. | ||
- // This is most likely due to ad blockers | ||
- fetch(telemetryEndpointUrl, { method: 'POST' }).catch(err => { | ||
- this.impl = NullTelemetryService; | ||
- }); | ||
+ | ||
+ if (remoteAgentService.getConnection() === null && getTelemetryLevel(configurationService) !== TelemetryLevel.NONE) { | ||
+ // If we cannot fetch the endpoint it means it is down and we should not send any telemetry. | ||
+ // This is most likely due to ad blockers | ||
|