Update scripting activities to set the DefaultSyntax to allow autocomplete to work correctly with new PR.

This commit is contained in:
Matt 2025-03-09 19:47:46 +00:00
parent 8817bdc303
commit 13bc8eef8a
6 changed files with 6 additions and 0 deletions

View file

@ -34,6 +34,7 @@ public class RunCSharp : CodeActivity<object?>
/// </summary>
[Input(
Description = "The script to run.",
DefaultSyntax = "CSharp",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(RunCSharpOptionsProvider)
)]

View file

@ -33,6 +33,7 @@ public class RunJavaScript : CodeActivity<object?>
/// </summary>
[Input(
Description = "The script to run.",
DefaultSyntax = "JavaScript",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(RunJavaScriptOptionsProvider)
)]

View file

@ -32,6 +32,7 @@ public class RunPython : CodeActivity<object?>
/// </summary>
[Input(
Description = "The script to run.",
DefaultSyntax = "Python",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(RunPythonOptionsProvider)
)]

View file

@ -44,6 +44,7 @@ public class SqlCommand : Activity
/// </summary>
[Input(
Description = "Command to run against the database.",
DefaultSyntax = "Sql",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(SqlCodeOptionsProvider)
)]

View file

@ -45,6 +45,7 @@ public class SqlQuery : Activity
/// </summary>
[Input(
Description = "Query to run against the database.",
DefaultSyntax = "Sql",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(SqlCodeOptionsProvider)
)]

View file

@ -44,6 +44,7 @@ public class SqlSingleValue : Activity
/// </summary>
[Input(
Description = "Query to run against the database.",
DefaultSyntax = "Sql",
UIHint = InputUIHints.CodeEditor,
UIHandler = typeof(SqlCodeOptionsProvider)
)]