Skip to content

Commit

Permalink
Add "Edit Configuration" VS Code task
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Oct 31, 2023
1 parent 6e4e80b commit 2beae16
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/GUI/RevEng.Shared/Cli/VsCode/VsCodeTaskHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ public static void GenerateTaskPayload(string projectPath, int version, string r
version = "2.0.0",
tasks = new System.Collections.Generic.List<TaskItem>
{
new TaskItem
{
label = "EF Core Power Tools: Edit Configuration",
command = "code",
type = "shell",
args = new System.Collections.Generic.List<string>
{
"-r",
"${workspaceFolder}/efcpt-config.json",
},
presentation = new Presentation
{
reveal = "never",
},
group = "none",
problemMatcher = "$msCompile",
},
new TaskItem
{
label = "EF Core Power Tools: Reverse Engineer",
Expand All @@ -37,11 +54,11 @@ public static void GenerateTaskPayload(string projectPath, int version, string r
"${input:connection}",
"mssql",
},
group = "none",
presentation = new Presentation
{
reveal = "always",
},
group = "none",
problemMatcher = "$msCompile",
},
new TaskItem
Expand All @@ -57,11 +74,11 @@ public static void GenerateTaskPayload(string projectPath, int version, string r
"--version",
$"{version}.0.*-*",
},
group = "none",
presentation = new Presentation
{
reveal = "always",
},
group = "none",
problemMatcher = "$msCompile",
},
},
Expand Down

0 comments on commit 2beae16

Please sign in to comment.