From 2beae16ac418a137649ef88d7408f075708e9cc8 Mon Sep 17 00:00:00 2001 From: Erik Ejlskov Jensen Date: Tue, 31 Oct 2023 17:50:42 +0100 Subject: [PATCH] Add "Edit Configuration" VS Code task --- .../Cli/VsCode/VsCodeTaskHelper.cs | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/GUI/RevEng.Shared/Cli/VsCode/VsCodeTaskHelper.cs b/src/GUI/RevEng.Shared/Cli/VsCode/VsCodeTaskHelper.cs index 7da7f42a8..4bc04f9df 100644 --- a/src/GUI/RevEng.Shared/Cli/VsCode/VsCodeTaskHelper.cs +++ b/src/GUI/RevEng.Shared/Cli/VsCode/VsCodeTaskHelper.cs @@ -27,6 +27,23 @@ public static void GenerateTaskPayload(string projectPath, int version, string r version = "2.0.0", tasks = new System.Collections.Generic.List { + new TaskItem + { + label = "EF Core Power Tools: Edit Configuration", + command = "code", + type = "shell", + args = new System.Collections.Generic.List + { + "-r", + "${workspaceFolder}/efcpt-config.json", + }, + presentation = new Presentation + { + reveal = "never", + }, + group = "none", + problemMatcher = "$msCompile", + }, new TaskItem { label = "EF Core Power Tools: Reverse Engineer", @@ -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 @@ -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", }, },