mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Add Agent Job and Job Step request handlers (#635)
* Stage changes * Fix update job request handler * WIP * Additional agent handler updates * Setup agent job step create test * Fix Step update handler
This commit is contained in:
@@ -49,13 +49,23 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
protected override bool DoPreProcessExecution(RunType runType, out ExecutionMode executionResult)
|
||||
{
|
||||
base.DoPreProcessExecution(runType, out executionResult);
|
||||
this.data.ApplyChanges(creating: true);
|
||||
if (!IsScripting(runType))
|
||||
{
|
||||
this.DataContainer.SqlDialogSubject = this.data.Job;
|
||||
}
|
||||
|
||||
if (this.configAction == ConfigAction.Drop)
|
||||
{
|
||||
if (this.data.Job != null)
|
||||
{
|
||||
this.data.Job.DropIfExists();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.data.ApplyChanges(creating: this.configAction == ConfigAction.Create);
|
||||
if (!IsScripting(runType))
|
||||
{
|
||||
this.DataContainer.SqlDialogSubject = this.data.Job;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user