mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
Adding accessible tooltips and tooltip based alerts (#20912)
This commit is contained in:
@@ -23,6 +23,7 @@ import { localize } from 'vs/nls';
|
||||
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
|
||||
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||
import { CATEGORIES } from 'sql/workbench/contrib/query/browser/queryActions';
|
||||
import { IConfigurationRegistry, Extensions as ConfigExtensions, IConfigurationNode } from 'vs/platform/configuration/common/configurationRegistry';
|
||||
|
||||
// Execution Plan editor registration
|
||||
|
||||
@@ -118,3 +119,19 @@ CommandsRegistry.registerCommand(COMPARE_EXECUTION_PLAN_COMMAND_ID, (accessors:
|
||||
pinned: true
|
||||
});
|
||||
});
|
||||
|
||||
const executionPlanContribution: IConfigurationNode = {
|
||||
id: 'executionPlan',
|
||||
type: 'object',
|
||||
title: localize('executionPlanConfigurationTitle', "Execution Plan"),
|
||||
properties: {
|
||||
'executionPlan.tooltips.enableOnHoverTooltips': {
|
||||
'type': 'boolean',
|
||||
'description': localize('executionPlan.tooltips.enableOnHoverTooltips', "When true, enables tooltips on hover for execution plan. When false, tooltips are shown on node click or F3 key press."),
|
||||
'default': false
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
const configurationRegistry = <IConfigurationRegistry>Registry.as(ConfigExtensions.Configuration);
|
||||
configurationRegistry.registerConfiguration(executionPlanContribution);
|
||||
|
||||
Reference in New Issue
Block a user