Skip to content

Support defaultSnippets VSCode's custom keyword #107

Description

@Ahmedmhmud

Related to #85

VS Code supports the custom keyword defaultSnippets. We want to support it too, so users can move to this language server more easily.

Scope

  • Add a new type in CompletionEvaluationPlugin.ts to store defaultSnippets data in a simple way.
  • Add a separate function in CompletionEvaluationPlugin.ts to collect defaultSnippets from schema nodes during validation.
  • Add a new async wrapper in JsonDocument.ts to get snippet data using the current JSON pointer, the same way the existing completion helpers work.
  • Use that data in PropertyCompletion.ts to build snippet completion items.
  • Add tests for the new behavoir.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions