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.
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
CompletionEvaluationPlugin.tsto storedefaultSnippetsdata in a simple way.CompletionEvaluationPlugin.tsto collect defaultSnippets from schema nodes during validation.JsonDocument.tsto get snippet data using the current JSON pointer, the same way the existing completion helpers work.PropertyCompletion.tsto build snippet completion items.