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
{{ message }}
Repository navigation
Commit d0ac1ae
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/src/content/docs/setup/vscode.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,3 +63,59 @@ Configure VS Code to automatically compile workflows when files change. Create o
63
63
```
64
64
65
65
The task starts automatically when you open a Markdown file under `.github/workflows/`. If it doesn't start, use the command palette (`Ctrl + Shift + P`) and run `Tasks: Manage Automatic Tasks` to enable automatic task execution.
66
+
67
+
## YAML Schema Validation
68
+
69
+
The repository is configured to provide real-time validation and autocomplete for workflow frontmatter using the [RedHat YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
70
+
71
+
### Features
72
+
73
+
-**Real-time validation**: Frontmatter fields are validated as you type against the comprehensive workflow schema
74
+
-**Autocomplete**: Get intelligent suggestions for field names and values
75
+
-**Hover documentation**: See descriptions and examples for each field by hovering over it
76
+
-**Error highlighting**: Invalid configurations are highlighted with descriptive error messages
77
+
78
+
### Setup
79
+
80
+
1.**Install the extension**: When you open the repository, VS Code will recommend installing the RedHat YAML extension. Accept the recommendation or install it manually from the Extensions marketplace.
81
+
82
+
2.**Automatic configuration**: The schema is automatically applied to all `.md` files in `.github/workflows/` via `.vscode/settings.json`:
0 commit comments