diff --git a/src/sql/workbench/contrib/dashboard/browser/dashboardRegistry.ts b/src/sql/workbench/contrib/dashboard/browser/dashboardRegistry.ts index 3a173c38a0..af477e3ab2 100644 --- a/src/sql/workbench/contrib/dashboard/browser/dashboardRegistry.ts +++ b/src/sql/workbench/contrib/dashboard/browser/dashboardRegistry.ts @@ -35,7 +35,9 @@ export interface FlavorProperties { databaseProperties: Array; serverProperties: Array; databasesListProperties?: Array; + databaseListHintText?: string; objectsListProperties?: Array; + objectListHintText?: string; } export interface ConditionProperties { diff --git a/src/sql/workbench/contrib/dashboard/browser/widgets/explorer/explorerWidget.component.ts b/src/sql/workbench/contrib/dashboard/browser/widgets/explorer/explorerWidget.component.ts index aa2c69a5bd..56ddaaf14e 100644 --- a/src/sql/workbench/contrib/dashboard/browser/widgets/explorer/explorerWidget.component.ts +++ b/src/sql/workbench/contrib/dashboard/browser/widgets/explorer/explorerWidget.component.ts @@ -30,6 +30,7 @@ import { ILogService } from 'vs/platform/log/common/log'; import { IEditorProgressService } from 'vs/platform/progress/common/progress'; import { attachInputBoxStyler } from 'vs/platform/theme/common/styler'; import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService'; +import { getFlavor } from 'sql/workbench/contrib/dashboard/browser/dashboardRegistry'; @Component({ selector: 'explorer-widget', @@ -67,8 +68,10 @@ export class ExplorerWidget extends DashboardWidget implements IDashboardWidget, ngOnInit() { this._inited = true; - - const placeholderLabel = this._config.context === 'database' ? nls.localize('seachObjects', "Search by name of type (t:, v:, f:, or sp:)") : nls.localize('searchDatabases', "Search databases"); + const flavor = getFlavor(this._bootstrap.connectionManagementService.connectionInfo.serverInfo, this.logService, this._bootstrap.connectionManagementService.connectionInfo.providerId); + const placeholderLabel = this._config.context === 'database' ? + flavor && flavor.objectListHintText ? flavor.objectListHintText : nls.localize('seachObjects', "Search by name of type (t:, v:, f:, or sp:)") + : flavor && flavor.databaseListHintText ? flavor.databaseListHintText : nls.localize('searchDatabases', "Search databases"); const inputOptions: IInputOptions = { placeholder: placeholderLabel,