Skip to content

Commit 7fca794

Browse files
author
Arvid Paeglit
committed
renamed new configs to reorder them in VSC settings page
1 parent 291ec66 commit 7fca794

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,18 @@
6464
"markdownDescription": "User consent for code upload to `#deepcode.url#`",
6565
"scope": "window"
6666
},
67-
"deepcode.enableErrorReporter": {
67+
"deepcode.yesCrashReport": {
68+
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
6869
"type": "boolean",
6970
"default": true,
70-
"markdownDescription": "Enable errors to be reported to `#deepcode.url#`",
71+
"markdownDescription": "Allow crash reports to be reported to `#deepcode.url#`",
7172
"scope": "application"
7273
},
73-
"deepcode.enableTelemetry": {
74+
"deepcode.yesTelemetry": {
75+
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
7476
"type": "boolean",
7577
"default": true,
76-
"markdownDescription": "Enable usage data to be sent to `#deepcode.url#`",
78+
"markdownDescription": "Allow extension's telemetry to be sent to `#deepcode.url#`",
7779
"scope": "application"
7880
}
7981
}

src/deepcode/lib/modules/BaseDeepCodeModule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ export default class BaseDeepCodeModule implements DeepCode.BaseDeepCodeModuleIn
7979
}
8080

8181
public get shouldReportErrors(): boolean {
82-
return !!vscode.workspace.getConfiguration('deepcode').get('enableErrorReporter');
82+
return !!vscode.workspace.getConfiguration('deepcode').get('yesCrashReport');
8383
}
8484

8585
public get shouldReportEvents(): boolean {
86-
return !!vscode.workspace.getConfiguration('deepcode').get('enableTelemetry');
86+
return !!vscode.workspace.getConfiguration('deepcode').get('yesTelemetry');
8787
}
8888
}

0 commit comments

Comments
 (0)