You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This screenshot shows enhanced hover documentation for the 'type' property in a configuration document. The documentation includes a link at the top to the online documentation, followed by prose explaining the syntax for the property.
50
52
:::image-end:::
51
-
<!-- markdownlint-enable MD013-->
53
+
<!-- markdownlint-restore-->
52
54
53
55
With the enhanced schemas, hovering on a property displays contextual help rendered from Markdown.
54
56
When possible, the hover help includes a link to the online documentation.
@@ -59,7 +61,7 @@ When possible, the hover help includes a link to the online documentation.
59
61
:::image type="complex" source="media/enhanced-authoring/peek-help.png" alt-text="This screenshot shows enhanced documentation with autocomplete.":::
60
62
This screenshot shows the DSC Resource instance autocomplete option and contextual documentation in a configuration document. The contextual help is shown to the side of the completion option list. The help includes a link to the online documentation, the descriptive prose, and the required properties.
61
63
:::image-end:::
62
-
<!-- markdownlint-enable MD013-->
64
+
<!-- markdownlint-restore-->
63
65
64
66
When using IntelliSense while authoring with an enhanced schema, the quick info shown for the
65
67
completion options displays as rendered Markdown. When possible, the quick info includes a link to
@@ -71,7 +73,7 @@ the online documentation.
71
73
:::image type="complex" source="media/enhanced-authoring/enum-help.png" alt-text="This screenshot shows contextual documentation for an enum.":::
72
74
This screenshot shows the contextual documentation for the 'return' property enum values in a resource manifest. The contextual help is shown beneath the enum list, describing the currently selected value.
73
75
:::image-end:::
74
-
<!-- markdownlint-enable MD013-->
76
+
<!-- markdownlint-restore-->
75
77
76
78
The enhanced schemas add documentation for enum values when using IntelliSense to select a valid
77
79
value. By default, schemas can't provide per-enum documentation. They can only define documentation
@@ -87,7 +89,7 @@ for the property an enum belongs to.
87
89
:::image type="complex" source="media/enhanced-authoring/snippet-completion.png" alt-text="This screenshot shows the editable output for the chosen snippet.":::
88
90
This screenshot shows the editable output for the 'New metadata property (object)' snippet. It defined a new property named 'metadataName' with a nested key-value pair. The property name, key, and value are editable text that a user can tab through, like any other VS Code snippet.
89
91
:::image-end:::
90
-
<!-- markdownlint-enable MD013-->
92
+
<!-- markdownlint-restore-->
91
93
92
94
For common use cases, the enhanced schemas define sets of default snippets. These snippets are
93
95
contextual and make it easier and faster to define the file. The snippets work like any other
@@ -99,7 +101,7 @@ snippets in VS Code.
99
101
:::image type="complex" source="media/enhanced-authoring/error-messages.png" alt-text="This screenshot shows an enhanced error message for failed validation.":::
100
102
This screenshot shows a contextual error message when the name property for a resource instance doesn't match the validating regular expression. The value is the string 'invalid?' and the error message says "Invalid value for instance name. An instance name must be a non-empty string containing only letters, numbers, and spaces."
101
103
:::image-end:::
102
-
<!-- markdownlint-enable MD013-->
104
+
<!-- markdownlint-restore-->
103
105
104
106
When defining values, the enhanced schemas have contextual error messages instead of the default
105
107
error messages that JSON schema validation raises. This is particularly helpful for properties that
@@ -109,7 +111,7 @@ and lists the regular expression pattern.
109
111
## Using the enhanced configuration document schema
110
112
111
113
To associate every configuration document with the enhanced schema, add the following snippet to
112
-
your [settings.json] file in VS Code. You can define these options in your user settings or for a
114
+
your `settings.json` file in VS Code. You can define these options in your user settings or for a
Copy file name to clipboardExpand all lines: dsc/docs-conceptual/dsc-3.0/concepts/output-accessibility.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
---
2
-
description: This article aims to guide you through methods to output from PowerShell in formats that are friendly for screen readers, enhancing the accessibility of your scripts.
2
+
description: >-
3
+
This article aims to guide you through methods to output from PowerShell in formats that are
4
+
friendly for screen readers, enhancing the accessibility of your scripts.
3
5
ms.custom: experience
4
-
ms.date: 09/12/2024
6
+
ms.date: 03/18/2025
5
7
title: Improve the accessibility of DSC output in PowerShell
6
8
---
7
9
@@ -102,8 +104,15 @@ dsc resource list -a Microsoft.Windows/WindowsPowerShell |
102
104
103
105
## Additional reading
104
106
105
-
-[Improve the accessibility of output in PowerShell](/powershell/scripting/learn/shell/output-for-screen-reader)
0 commit comments