diff --git a/templates/csharp/templatedcontrol/.template.config/template.json b/templates/csharp/templatedcontrol/.template.config/template.json index b70884cb..a21c8803 100644 --- a/templates/csharp/templatedcontrol/.template.config/template.json +++ b/templates/csharp/templatedcontrol/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "C#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens TemplatedControl in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/csharp/usercontrol/.template.config/template.json b/templates/csharp/usercontrol/.template.config/template.json index 57b26014..27b5d423 100644 --- a/templates/csharp/usercontrol/.template.config/template.json +++ b/templates/csharp/usercontrol/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "C#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens UserControl in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/csharp/window/.template.config/template.json b/templates/csharp/window/.template.config/template.json index cbee8d45..e121439b 100644 --- a/templates/csharp/window/.template.config/template.json +++ b/templates/csharp/window/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "C#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens Window in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/fsharp/templatedcontrol/.template.config/template.json b/templates/fsharp/templatedcontrol/.template.config/template.json index fae470e6..424ab4f1 100644 --- a/templates/fsharp/templatedcontrol/.template.config/template.json +++ b/templates/fsharp/templatedcontrol/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "F#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens TemplatedControl in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/fsharp/usercontrol/.template.config/template.json b/templates/fsharp/usercontrol/.template.config/template.json index 50b4c6ab..dcc73f62 100644 --- a/templates/fsharp/usercontrol/.template.config/template.json +++ b/templates/fsharp/usercontrol/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "F#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens UserControl in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/fsharp/window/.template.config/template.json b/templates/fsharp/window/.template.config/template.json index bf7843ae..8096bef9 100644 --- a/templates/fsharp/window/.template.config/template.json +++ b/templates/fsharp/window/.template.config/template.json @@ -35,5 +35,18 @@ "tags": { "language": "F#", "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens Window in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0;1" + }, + "continueOnError": true + } + ] } \ No newline at end of file diff --git a/templates/resource-dictionary/.template.config/template.json b/templates/resource-dictionary/.template.config/template.json index bf69b0eb..f1f73dce 100644 --- a/templates/resource-dictionary/.template.config/template.json +++ b/templates/resource-dictionary/.template.config/template.json @@ -13,5 +13,18 @@ "sourceName": "NewResourceDictionary", "tags": { "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens ResourceDictionary in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0" + }, + "continueOnError": true + } + ] } diff --git a/templates/styles/.template.config/template.json b/templates/styles/.template.config/template.json index dda81d7d..22363a81 100644 --- a/templates/styles/.template.config/template.json +++ b/templates/styles/.template.config/template.json @@ -13,5 +13,18 @@ "sourceName": "NewStyles", "tags": { "type": "item" - } + }, + "postActions": [ + { + "id": "editor", + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens Style in the editor.", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0" + }, + "continueOnError": true + } + ] }