Repository navigation
feat YAML required fields indicator - #581
Conversation
✅ Deploy Preview for openworkflow-editor ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟡 Changes recommended
Required-field detection still skips root-level completions and produces invalid validation YAML for explicit null values, requiring fixes and root-level regression tests.
2 open issues
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
Improves YAML autocomplete by highlighting missing required fields and removing extra blank lines from inserted completions.
Changes:
- Prioritizes required fields using validation diagnostics and cursor context.
- Adds cancellation handling and completion regression tests.
- Updates runtime dependencies and release notes.
| File | Description |
|---|---|
pnpm-lock.yaml |
Records the runtime dependency move. |
packages/language-service/vite.config.ts |
Externalizes the text-document dependency. |
packages/language-service/tests/volar/yaml/schema.test.ts |
Expects required-field labels. |
packages/language-service/tests/volar/yaml/implied-types.test.ts |
Matches completions independently of display labels. |
packages/language-service/tests/volar/completions/task-types-first.test.ts |
Allows required-field prioritization. |
packages/language-service/tests/volar/completions/required-fields.test.ts |
Tests required-field completion behavior. |
packages/language-service/tests/volar/completions/no-blank-lines.test.ts |
Tests compact completion snippets. |
packages/language-service/src/volar/yaml/schema.ts |
Integrates the completion transforms. |
packages/language-service/src/volar/cursor-owner.ts |
Identifies the cursor’s owning YAML key. |
packages/language-service/src/volar/completions/transform-completions.ts |
Passes cancellation tokens to transforms. |
packages/language-service/src/volar/completions/task-types-first.ts |
Exports task-type detection. |
packages/language-service/src/volar/completions/required-fields.ts |
Labels and prioritizes missing required fields. |
packages/language-service/src/volar/completions/no-blank-lines.ts |
Removes blank lines from completion text. |
packages/language-service/package.json |
Moves text-document support to runtime dependencies. |
.changeset/required-fields-first.md |
Documents the autocomplete improvements. |
Review effort: Balanced
9d51b7c to
fb031d6
Compare
🦋 Changeset detectedLatest commit: 807b064 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
🟡 Changes recommended
Required-field detection still mishandles empty anchored values and multiline explicit nulls, producing invalid validation YAML or suppressing a parent’s required-field indicator.
2 open issues
2 resolved since last review
1 file not reviewed
pnpm-lock.yaml: Generated file
Review effort: Balanced
fb031d6 to
0af36bd
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The cursor-owner heuristic misclassifies a later blank line after a completed multiline scalar, causing required-field validation to miss the parent’s required endpoint.
1 open issue
2 resolved since last review
1 file not reviewed
pnpm-lock.yaml: Generated file
Review effort: Balanced
Signed-off-by: lornakelly <lornakelly88@gmail.com>
0af36bd to
807b064
Compare

Summary
Enhances autocomplete UX by prioritising required fields and cleaning up YAML completions. Required fields now appear first in completion lists, clearly marked with "(required)" labels. YAML completions no longer insert unnecessary blank lines between fields (listen and fork).
Main Changes
Before:
Screen.Recording.2026-12-02.at.10.51.32.mov
After:
Screen.Recording.2026-12-02.at.10.53.38.mov
Before - extra line added
