mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Add support for target location in tasks (#10179)
* Add support for target location in tasks * bump sqltoolsservice to get addition of targetLocation to TaskNode
This commit is contained in:
@@ -103,11 +103,18 @@ export class TaskHistoryRenderer implements IRenderer {
|
||||
templateData.label.textContent = element.taskName + ' ' + taskStatus;
|
||||
templateData.label.title = templateData.label.textContent;
|
||||
|
||||
let description: string;
|
||||
// Determine the target name and set hover text equal to that
|
||||
let description = element.serverName;
|
||||
if (element.databaseName) {
|
||||
description += ' | ' + element.databaseName;
|
||||
// show target location if there is one, otherwise show server and database name
|
||||
if (element.targetLocation) {
|
||||
description = element.targetLocation;
|
||||
} else {
|
||||
description = element.serverName;
|
||||
if (element.databaseName) {
|
||||
description += ' | ' + element.databaseName;
|
||||
}
|
||||
}
|
||||
|
||||
templateData.description.textContent = description;
|
||||
templateData.description.title = templateData.description.textContent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user