Skip to content

Commit 1c20067

Browse files
committed
updates based on @learn-build-service-prod
1 parent 7e52c74 commit 1c20067

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ There are two different kinds of pages you can show:
188188

189189
- [ListPage](./microsoft-commandpalette-extensions-toolkit/listpage.md) - This is a page that shows a list of commands. This is what we've been working with so far.
190190

191-
![Screenshot of ListPage](../../images/command-palette/ListPage.png)
191+
![Screenshot of ListPage](../../images/command-palette/list-page.png)
192192

193193
- [ContentPage](./microsoft-commandpalette-extensions-toolkit/contentpage.md) - This is a page that shows rich content to the user. This allows you to specify abstract content, and let Command Palette worry about rendering the content in a native experience. There are two different types of content supported so far:
194194
- [Markdown content](./using-markdown-content.md) - This is content that's written in Markdown, and is rendered in the Command Palette. See [MarkdownContent](./microsoft-commandpalette-extensions-toolkit/markdowncontent.md) for details.
@@ -249,7 +249,7 @@ internal sealed partial class MySecondPage : ListPage
249249
+ new ListItem(new MySecondPage()) { Title = "My second page", Subtitle = "A second page of commands" },
250250
];
251251
}
252-
```f
252+
```
253253

254254
1. Deploy your extension
255255
1. In Command Palette, `Reload`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ internal sealed partial class SampleContentForm : FormContent
119119

120120
The `SampleContentForm` contains the form and form submission logic. The `TemplateJson` contains the form structure and actions. This example only contains one text input which has the id of "Name" and has one action of submitting the form. The `SubmitForm` handles parsing the payload; if its invalid will return the command to home and otherwise will display a confirmation dialog and a toast notification.
121121

122-
1. Open <ExtensionName>CommandsProvider.cs
122+
1. Open /<ExtensionName/>CommandsProvider.cs
123123
1. Replace the `MarkdownPage` for `FormPage`:
124124

125125
```diff
@@ -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 form with toggles](../../images/command-palette/form-toggle-comdpal.png)
264+
![Screenshot of extension using ContentPage for form with toggles](../../images/command-palette/form-toggle-command-palette.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public class <ExtensionName>Page : ContentPage
123123
1. Select \<ExtensionName\>
124124
1. Press `Enter` key, the docs should open
125125

126-
![Screenshot of extension using CommandContextItem](../../images/command-palette/CommandContextItem.png)
126+
![Screenshot of extension using CommandContextItem](../../images/command-palette/command-context-item.png)
127127

128128
### Next up: [Get user input with forms](using-form-pages.md)
129129

0 commit comments

Comments
 (0)