JSONPath Tools / @jsonpath-tools/jsonpath / CompletionService
Class: CompletionService
Provides completion items.
Constructors
new CompletionService()
ts
new CompletionService(queryOptions): CompletionServiceParameters
queryOptions
Query options.
Returns
CompletionService
Methods
provideCompletions()
ts
provideCompletions(
query,
queryArgument,
queryArgumentType,
position): CompletionItem[]Provides completion items at the given caret position in the query text.
Parameters
query
Query.
queryArgument
Query argument.
undefined | JSONValue
queryArgumentType
Query argument type.
position
number
Caret position in the query text (starts with 0).