mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 09:10:30 -04:00
Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 (#8649)
* Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 * distro * fix tests
This commit is contained in:
@@ -603,14 +603,13 @@ class PreferencesRenderersController extends Disposable {
|
||||
} else {
|
||||
/* __GDPR__
|
||||
"defaultSettings.searchError" : {
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight" },
|
||||
"filter": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight" }
|
||||
}
|
||||
*/
|
||||
const message = getErrorMessage(err).trim();
|
||||
if (message && message !== 'Error') {
|
||||
// "Error" = any generic network error
|
||||
this.telemetryService.publicLog('defaultSettings.searchError', { message, filter });
|
||||
this.telemetryService.publicLog('defaultSettings.searchError', { message });
|
||||
this.logService.info('Setting search error: ' + message);
|
||||
}
|
||||
return undefined;
|
||||
|
||||
@@ -540,17 +540,6 @@ export class SettingsEditor2 extends BaseEditor {
|
||||
|
||||
DOM.append(this.noResultsMessage, this.clearFilterLinkContainer);
|
||||
|
||||
const clearSearchContainer = $('span.clear-search');
|
||||
clearSearchContainer.textContent = ' - ';
|
||||
|
||||
const clearSearch = DOM.append(clearSearchContainer, $('a.pointer.prominent', { tabindex: 0 }, localize('clearSearch', 'Clear Search')));
|
||||
this._register(DOM.addDisposableListener(clearSearch, DOM.EventType.CLICK, (e: MouseEvent) => {
|
||||
DOM.EventHelper.stop(e, false);
|
||||
this.clearSearchResults();
|
||||
}));
|
||||
|
||||
DOM.append(this.noResultsMessage, clearSearchContainer);
|
||||
|
||||
this._register(attachStylerCallback(this.themeService, { editorForeground }, colors => {
|
||||
this.noResultsMessage.style.color = colors.editorForeground ? colors.editorForeground.toString() : null;
|
||||
}));
|
||||
@@ -1343,14 +1332,13 @@ export class SettingsEditor2 extends BaseEditor {
|
||||
} else {
|
||||
/* __GDPR__
|
||||
"settingsEditor.searchError" : {
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight" },
|
||||
"filter": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
||||
"message": { "classification": "CallstackOrException", "purpose": "FeatureInsight" }
|
||||
}
|
||||
*/
|
||||
const message = getErrorMessage(err).trim();
|
||||
if (message && message !== 'Error') {
|
||||
// "Error" = any generic network error
|
||||
this.telemetryService.publicLog('settingsEditor.searchError', { message, filter });
|
||||
this.telemetryService.publicLog('settingsEditor.searchError', { message });
|
||||
this.logService.info('Setting search error: ' + message);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user