Adds a tooltip title prop to the diagram node. (#18458) (#18463)

* Adds a tooltip title prop to the diagram node. (#18458)

* Adds a tooltip title prop to the diagram node.

* Updates azdataGraph package version to 0.0.16

* Fixes ansi_up version in remote package.json to match root package.json

* Fixes ansi_up version in remote/web package.json to match root version
This commit is contained in:
Lewis Sanchez
2022-02-17 19:52:17 -08:00
committed by GitHub
parent 932865ceee
commit 62822874ad
7 changed files with 17 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ import { IFileService } from 'vs/platform/files/common/files';
import { VSBuffer } from 'vs/base/common/buffer';
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
import { URI } from 'vs/base/common/uri';
import { ITextResourcePropertiesService } from 'vs/editor/common/services/textResourceConfigurationService';
let azdataGraph = azdataGraphModule();
@@ -165,7 +166,8 @@ export class QueryPlan2 implements ISashLayoutProvider {
@IContextMenuService private _contextMenuService: IContextMenuService,
@IFileDialogService public fileDialogService: IFileDialogService,
@IFileService public fileService: IFileService,
@IWorkspaceContextService public workspaceContextService: IWorkspaceContextService
@IWorkspaceContextService public workspaceContextService: IWorkspaceContextService,
@ITextResourcePropertiesService private readonly textResourcePropertiesService: ITextResourcePropertiesService
) {
// parent container for query plan.
this._container = DOM.$('.query-plan');
@@ -281,7 +283,8 @@ export class QueryPlan2 implements ISashLayoutProvider {
}
private populate(node: InternalExecutionPlanNode, diagramNode: any): any {
diagramNode.label = node.name;
diagramNode.label = node.subtext.join(this.textResourcePropertiesService.getEOL(undefined));
diagramNode.tooltipTitle = node.name;
const nodeId = this.createGraphElementId();
diagramNode.id = nodeId;
node.id = nodeId;