Skip to content

Support doNotSuggest - #163

Merged
jdesrosiers merged 3 commits into
hyperjump-io:mainfrom
Ahmedmhmud:feat/support-doNotSuggest
Oct 23, 2026
Merged

jdesrosiers merged 3 commits into
hyperjump-io:mainfrom
Ahmedmhmud:feat/support-doNotSuggest

Conversation

@Ahmedmhmud

Copy link
Copy Markdown
Contributor

Added support for doNotSuggest keyword in property completions.

A property whose schema sets doNotSuggest: true is no longer suggested, while remaining fully valid. It is done by reusing the annotations it already used for deprecation.
Works through $ref and allOf; a doNotSuggest inside an anyOf/oneOf alternative doesn't hide the property (matching VS Code, which only inspects the property's own schema).

Closes #162

Ahmedmhmud and others added 3 commits October 20, 2026 21:52
Annotations from a parent's alternatives are location annotations for the
property, so one alternative's doNotSuggest hides it until a discriminant
rules that alternative out. Cover the discriminated cases and document the
gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It's only used there, so it belongs with the feature rather than the shared
completions module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jdesrosiers jdesrosiers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I mostly just added a few tests.

@jdesrosiers
jdesrosiers merged commit 227d457 into hyperjump-io:main Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support doNotSuggest VScode's custom keyword

2 participants