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:
Kim Santiago
2020-04-28 15:35:40 -07:00
committed by GitHub
parent 4ec281313f
commit 11f6790630
5 changed files with 23 additions and 6 deletions

View File

@@ -43,6 +43,11 @@ export class TaskNode {
*/
public databaseName?: string;
/**
* Target Location
*/
public targetLocation?: string;
/**
* Provider Name
*/
@@ -99,7 +104,7 @@ export class TaskNode {
*/
public script?: string;
constructor(taskName: string, serverName?: string, databaseName?: string, taskId: string | undefined = undefined, taskExecutionMode: TaskExecutionMode = TaskExecutionMode.execute, isCancelable: boolean = true) {
constructor(taskName: string, serverName?: string, databaseName?: string, taskId: string | undefined = undefined, taskExecutionMode: TaskExecutionMode = TaskExecutionMode.execute, isCancelable: boolean = true, targetLocation?: string) {
this.id = taskId || generateUuid();
this.taskName = taskName;
@@ -111,5 +116,6 @@ export class TaskNode {
this.hasChildren = false;
this.taskExecutionMode = taskExecutionMode;
this.isCancelable = isCancelable;
this.targetLocation = targetLocation;
}
}