Skip to content

Commit 7e52c74

Browse files
committed
updates based on @alvinashcraft review
1 parent aff9154 commit 7e52c74

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

hub/powertoys/command-palette/add-top-level-commands-to-your-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public <ExtensionName>CommandsProvider()
5656
```
5757

5858
> [!NOTE]
59-
> The `ShowMessageCommand()` functionality was created prior at [InvokableCommand Command](adding-commands#invokableCommand-command)
59+
> The `ShowMessageCommand()` functionality was created prior at [InvokableCommand Command](/windows/powertoys/command-palette/adding-commands#invokableCommand-command)
6060
6161
1. Deploy your extension
6262
1. In Command Palette, `Reload`

hub/powertoys/command-palette/adding-commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ As your building your extension, you'll most likely want to debug it.
9797
1. You’ll see a dropdown that says either `Debug` or `Release` (next to the green "Start" button ▶️)
9898
1. If it says `Release`, click the dropdown and select `Debug`.
9999

100-
![Screenshot of reload](../../images/command-palette/debug-configuration.png)
100+
![Screenshot of Visual Studio's toolbar that displays Debug](../../images/command-palette/debug-configuration.png)
101101

102102
</details>
103103

104104
1. Run the app in debug by pressing the green "Start" button ▶️ or press `F5`
105105
1. Ensure the Output window is set to show `Debug` output (Ctrl + Alt + O)
106106

107-
![Screenshot of reload](../../images/command-palette/output.png)
107+
![Screenshot of Visual Studio's Output panel](../../images/command-palette/output.png)
108108

109109
1. In the Command Palette, run `reload`
110110
1. Go to your extension and select `Open the Command Palette documentation`.
@@ -197,7 +197,7 @@ There are two different kinds of pages you can show:
197197

198198
- [Form content](./using-form-pages.md) - This is content that shows a form to the user, and then returns the results of that form to the extension. These are powered by [Adaptive Cards](https://aka.ms/adaptive-cards) This is useful for getting user input, or displaying more complex layouts of information. See [FormContent](./microsoft-commandpalette-extensions-toolkit/formcontent.md) for details.
199199

200-
![Screenshot of Form content](../../images/command-palette/reload.png)
200+
![Screenshot of Form content](../../images/command-palette/form-toggle-comdpal.png)
201201

202202
## Add more commands
203203

hub/powertoys/command-palette/using-form-pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Adaptive Cards can do more complex forms, including using another json object to
230230

231231
The Designer tool should look something like this:
232232

233-
![Screenshot of extension using ContentPage for simple form](../../images/command-palette/form-toggle.png)
233+
![Screenshot of adaptive cards for form with toggles](../../images/command-palette/form-toggle.png)
234234

235235
To add this content to your extension:
236236

@@ -261,7 +261,7 @@ To add this content to your extension:
261261
1. Deploy your extension
262262
1. In Command Palette, `Reload`
263263

264-
![Screenshot of extension using ContentPage for simple form](../../images/command-palette/form-toggle-comdpal.png)
264+
![Screenshot of extension using ContentPage for form with toggles](../../images/command-palette/form-toggle-comdpal.png)
265265

266266
`TemplateJson` and `DataJson` work together to create dynamic, data-driven forms. `TemplateJson` can act as fhe Form Blueprint and `DataJson` as the Dynamic Content Source.
267267

hub/powertoys/command-palette/using-markdown-content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal sealed partial class MarkdownPage : ContentPage
4444
}
4545
```
4646

47-
1. Open <ExtensionName>CommandsProvider.cs
47+
1. Open \<ExtensionName\>CommandsProvider.cs
4848
1. Replace the `CommandItem`s for the `MarkdownPage`:
4949

5050
```diff
@@ -88,7 +88,7 @@ This allows you to mix-and-match different types of content on a single page.
8888

8989
You can also add commands to a `ContentPage`. This allows you to add additional commands to be invoked by the user, while in the context of the content. For example, if you had a page that displayed a document, you could add a command to open the document in File Explorer:
9090

91-
1. In your <ExtensionName>Page.cs, add `doc_path`, `Commands` and `MarkdownContent`:
91+
1. In your \<ExtensionName\>Page.cs, add `doc_path`, `Commands` and `MarkdownContent`:
9292

9393
```diff
9494

@@ -120,7 +120,7 @@ public class <ExtensionName>Page : ContentPage
120120
1. Update the path in the `doc_path` to a .txt file on your local machine
121121
1. Deploy your extension
122122
1. In Command Palette, `Reload`
123-
1. Select <ExtensionName>
123+
1. Select \<ExtensionName\>
124124
1. Press `Enter` key, the docs should open
125125

126126
![Screenshot of extension using CommandContextItem](../../images/command-palette/CommandContextItem.png)

0 commit comments

Comments
 (0)