mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Add some Settings editor event annotations (#144287)
This commit is contained in:
parent
861340560f
commit
79d9bb8754
|
@ -1033,13 +1033,13 @@ export class SettingsEditor2 extends EditorPane {
|
|||
|
||||
/* __GDPR__
|
||||
"settingsEditor.settingModified" : {
|
||||
"key" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
|
||||
"groupId" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
|
||||
"nlpIndex" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
|
||||
"displayIndex" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
|
||||
"showConfiguredOnly" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
|
||||
"isReset" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
|
||||
"target" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
||||
"key" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rzhao271", "comment": "The setting that is being modified." },
|
||||
"groupId" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rzhao271", "comment": "Whether the setting is from the local search or remote search provider, if applicable." },
|
||||
"nlpIndex" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "The index of the setting in the remote search provider results, if applicable." },
|
||||
"displayIndex" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "The index of the setting in the combined search results, if applicable." },
|
||||
"showConfiguredOnly" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rzhao271", "comment": "Whether the user is in the modified view, which shows configured settings only." },
|
||||
"isReset" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rzhao271", "comment": "Identifies whether a setting was reset to its default value." },
|
||||
"target" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "rzhao271", "comment": "The scope of the setting, such as user or workspace." }
|
||||
}
|
||||
*/
|
||||
this.telemetryService.publicLog('settingsEditor.settingModified', data);
|
||||
|
@ -1341,10 +1341,10 @@ export class SettingsEditor2 extends EditorPane {
|
|||
|
||||
private reportFilteringUsed(query: string, results: ISearchResult[]): void {
|
||||
const nlpResult = results[SearchResultIdx.Remote];
|
||||
const nlpMetadata = nlpResult && nlpResult.metadata;
|
||||
const nlpMetadata = nlpResult?.metadata;
|
||||
|
||||
const durations = {
|
||||
nlpResult: nlpMetadata && nlpMetadata.duration
|
||||
const duration = {
|
||||
nlpResult: nlpMetadata?.duration
|
||||
};
|
||||
|
||||
// Count unique results
|
||||
|
@ -1358,20 +1358,20 @@ export class SettingsEditor2 extends EditorPane {
|
|||
counts['nlpResult'] = nlpResult.filterMatches.length;
|
||||
}
|
||||
|
||||
const requestCount = nlpMetadata && nlpMetadata.requestCount;
|
||||
const requestCount = nlpMetadata?.requestCount;
|
||||
|
||||
const data = {
|
||||
durations,
|
||||
durations: duration,
|
||||
counts,
|
||||
requestCount
|
||||
};
|
||||
|
||||
/* __GDPR__
|
||||
"settingsEditor.filter" : {
|
||||
"durations.nlpResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
|
||||
"counts.nlpResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
|
||||
"counts.filterResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
|
||||
"requestCount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }
|
||||
"durations.nlpResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "How long the remote search provider took, if applicable." },
|
||||
"counts.nlpResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "The number of matches found by the remote search provider, if applicable." },
|
||||
"counts.filterResult" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "The number of matches found by the local search provider, if applicable." },
|
||||
"requestCount" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "rzhao271", "comment": "The number of requests sent to Bing, if applicable." }
|
||||
}
|
||||
*/
|
||||
this.telemetryService.publicLog('settingsEditor.filter', data);
|
||||
|
@ -1501,7 +1501,7 @@ export class SettingsEditor2 extends EditorPane {
|
|||
} else {
|
||||
/* __GDPR__
|
||||
"settingsEditor.searchError" : {
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight" }
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight", "owner": "rzhao271", comment: "The error message of the search error." }
|
||||
}
|
||||
*/
|
||||
const message = getErrorMessage(err).trim();
|
||||
|
|
Loading…
Reference in a new issue