Add ide.host.json for VS parameter labels

This commit is contained in:
2026-08-27 00:21:33 +02:00
parent 8ac9e21714
commit 8d0b8895dc
2 changed files with 26 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"$schema": "http://json.schemastore.org/ide.host",
"symbolInfo": [
{
"id": "PluginAuthor",
"name": { "text": "Plugin Author" },
"isVisible": "true"
},
{
"id": "skipRestore",
"name": { "text": "Skip Restore" },
"isVisible": "true"
},
{
"id": "SkipGit",
"name": { "text": "Skip Git" },
"isVisible": "true"
}
]
}
+6
View File
@@ -49,6 +49,12 @@ Consequences:
its own) and a "display manual instructions" action (id `AC1156F7-...`) that prints its own) and a "display manual instructions" action (id `AC1156F7-...`) that prints
a reminder to run `git init` — see "Git on generation" below for why it's just a a reminder to run `git init` — see "Git on generation" below for why it's just a
printed reminder and not an executed command. printed reminder and not an executed command.
- `.template.config/ide.host.json` — Visual Studio-only UI hints for the New Project
wizard. It does **not** rename any symbol (the CLI flags stay `PluginAuthor`/
`skipRestore`/`SkipGit` — a flag can't contain a space); it only maps each symbol's
`id` to a human-readable `name.text` label (e.g. `SkipGit` → "Skip Git") shown in
VS's UI, via `isVisible: "true"` per entry (VS hides a symbol from that UI unless
explicitly marked visible here). Ignored entirely by `dotnet new` on the CLI.
- The `.csproj` at the repo root — the project file every generated plugin ships with. - The `.csproj` at the repo root — the project file every generated plugin ships with.
- `EntryPoint.cs` / `Config.cs` — the scaffolded plugin (`Plugin<Config>`) and its - `EntryPoint.cs` / `Config.cs` — the scaffolded plugin (`Plugin<Config>`) and its
YAML-backed settings class. YAML-backed settings class.