-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
It would be great to have the ability to specify custom autocompletion sources for specific values. These sources could either be associated with a specific JSON Schema format tag, or specified as an array of completion functions that would receive the schema for the given property.
I'd be interested in implementing this as a PR, but wanted to reach out, as I'm still figuring out how CM6 autocompletions work, much less how they're specifically set up in this extension.
Perhaps something like this?
type JSONCompletionSource = (schema: JSONSchema7, ctx: CompletionContext) => CompletionResult | Promise <CompletionResult | null> | null;
type JSONCompletionOptions = {
mode?: "json" | "json5";
custom?: JSONCompletionSource[];
};acao
Metadata
Metadata
Assignees
Labels
No labels