An item found in a completion response.
An item found in a completion response.
(data completion-entry)
A property to be sent back to TS Server in the CompletionDetailsRequest, along with name
,
that allows TS Server to look up the symbol represented by the completion item, disambiguating
items with the same name.
Returns: unknown
A property to be sent back to TS Server in the CompletionDetailsRequest, along with `name`, that allows TS Server to look up the symbol represented by the completion item, disambiguating items with the same name. **Returns:** `unknown`
(filter-text completion-entry)
A string that should be used when filtering a set of completion items.
Returns: string | undefined
A string that should be used when filtering a set of completion items. **Returns:** `string | undefined`
(from-unchecked-file completion-entry)
If true, this completion was generated from traversing the name table of an unchecked JS file, and therefore may not be accurate.
Returns: true | undefined
If true, this completion was generated from traversing the name table of an unchecked JS file, and therefore may not be accurate. **Returns:** `true | undefined`
(has-action completion-entry)
Indicates whether commiting this completion entry will require additional code actions to be made to avoid errors. The CompletionEntryDetails will have these actions.
Returns: true | undefined
Indicates whether commiting this completion entry will require additional code actions to be made to avoid errors. The CompletionEntryDetails will have these actions. **Returns:** `true | undefined`
(import-statement-completion completion-entry)
If true, this completion was an auto-import-style completion of an import statement (i.e., the module specifier was inserted along with the imported identifier). Used for telemetry reporting.
Returns: true | undefined
If true, this completion was an auto-import-style completion of an import statement (i.e., the module specifier was inserted along with the imported identifier). Used for telemetry reporting. **Returns:** `true | undefined`
(insert-text completion-entry)
Text to insert instead of name
.
This is used to support bracketed completions; If name
might be "a-b" but insertText
would be ["a-b"]
,
coupled with replacementSpan
to replace a dotted access with a bracket access.
Returns: string | undefined
Text to insert instead of `name`. This is used to support bracketed completions; If `name` might be "a-b" but `insertText` would be `["a-b"]`, coupled with `replacementSpan` to replace a dotted access with a bracket access. **Returns:** `string | undefined`
(kind completion-entry)
The symbol's kind (such as 'className' or 'parameterName').
Returns: ScriptElementKind
The symbol's kind (such as 'className' or 'parameterName'). **Returns:** `ScriptElementKind`
(kind-modifiers completion-entry)
Optional modifiers for the kind (such as 'public').
Returns: string | undefined
Optional modifiers for the kind (such as 'public'). **Returns:** `string | undefined`
(label-details completion-entry)
Additional details for the label.
Returns: CompletionEntryLabelDetails | undefined
Additional details for the label. **Returns:** `CompletionEntryLabelDetails | undefined`
(name completion-entry)
The symbol's name.
Returns: string
The symbol's name. **Returns:** `string`
(package-json-import completion-entry)
If true, this completion was for an auto-import of a module not yet in the program, but listed in the project package.json. Used for telemetry reporting.
Returns: true | undefined
If true, this completion was for an auto-import of a module not yet in the program, but listed in the project package.json. Used for telemetry reporting. **Returns:** `true | undefined`
(recommended completion-entry)
If true, this completion should be highlighted as recommended. There will only be one of these. This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class. Then either that enum/class or a namespace containing it will be the recommended symbol.
Returns: true | undefined
If true, this completion should be highlighted as recommended. There will only be one of these. This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class. Then either that enum/class or a namespace containing it will be the recommended symbol. **Returns:** `true | undefined`
(replacement-span completion-entry)
An optional span that indicates the text to be replaced by this completion item. If present, this span should be used instead of the default one. It will be set if the required span differs from the one generated by the default replacement behavior.
Returns: TextSpan | undefined
An optional span that indicates the text to be replaced by this completion item. If present, this span should be used instead of the default one. It will be set if the required span differs from the one generated by the default replacement behavior. **Returns:** `TextSpan | undefined`
(set-data! completion-entry value)
A property to be sent back to TS Server in the CompletionDetailsRequest, along with name
,
that allows TS Server to look up the symbol represented by the completion item, disambiguating
items with the same name.
A property to be sent back to TS Server in the CompletionDetailsRequest, along with `name`, that allows TS Server to look up the symbol represented by the completion item, disambiguating items with the same name.
(set-filter-text! completion-entry value)
A string that should be used when filtering a set of completion items.
A string that should be used when filtering a set of completion items.
(set-has-action! completion-entry value)
Indicates whether commiting this completion entry will require additional code actions to be made to avoid errors. The CompletionEntryDetails will have these actions.
Indicates whether commiting this completion entry will require additional code actions to be made to avoid errors. The CompletionEntryDetails will have these actions.
(set-insert-text! completion-entry value)
Text to insert instead of name
.
This is used to support bracketed completions; If name
might be "a-b" but insertText
would be ["a-b"]
,
coupled with replacementSpan
to replace a dotted access with a bracket access.
Text to insert instead of `name`. This is used to support bracketed completions; If `name` might be "a-b" but `insertText` would be `["a-b"]`, coupled with `replacementSpan` to replace a dotted access with a bracket access.
(set-is-from-unchecked-file! completion-entry value)
If true, this completion was generated from traversing the name table of an unchecked JS file, and therefore may not be accurate.
If true, this completion was generated from traversing the name table of an unchecked JS file, and therefore may not be accurate.
(set-is-import-statement-completion! completion-entry value)
If true, this completion was an auto-import-style completion of an import statement (i.e., the module specifier was inserted along with the imported identifier). Used for telemetry reporting.
If true, this completion was an auto-import-style completion of an import statement (i.e., the module specifier was inserted along with the imported identifier). Used for telemetry reporting.
(set-is-package-json-import! completion-entry value)
If true, this completion was for an auto-import of a module not yet in the program, but listed in the project package.json. Used for telemetry reporting.
If true, this completion was for an auto-import of a module not yet in the program, but listed in the project package.json. Used for telemetry reporting.
(set-is-recommended! completion-entry value)
If true, this completion should be highlighted as recommended. There will only be one of these. This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class. Then either that enum/class or a namespace containing it will be the recommended symbol.
If true, this completion should be highlighted as recommended. There will only be one of these. This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class. Then either that enum/class or a namespace containing it will be the recommended symbol.
(set-is-snippet! completion-entry value)
insertText
should be interpreted as a snippet if true.
`insertText` should be interpreted as a snippet if true.
(set-kind! completion-entry value)
The symbol's kind (such as 'className' or 'parameterName').
The symbol's kind (such as 'className' or 'parameterName').
(set-kind-modifiers! completion-entry value)
Optional modifiers for the kind (such as 'public').
Optional modifiers for the kind (such as 'public').
(set-label-details! completion-entry value)
Additional details for the label.
Additional details for the label.
(set-name! completion-entry value)
The symbol's name.
The symbol's name.
(set-replacement-span! completion-entry value)
An optional span that indicates the text to be replaced by this completion item. If present, this span should be used instead of the default one. It will be set if the required span differs from the one generated by the default replacement behavior.
An optional span that indicates the text to be replaced by this completion item. If present, this span should be used instead of the default one. It will be set if the required span differs from the one generated by the default replacement behavior.
(set-sort-text! completion-entry value)
A string that is used for comparing completion items so that they can be ordered. This is often the same as the name but may be different in certain circumstances.
A string that is used for comparing completion items so that they can be ordered. This is often the same as the name but may be different in certain circumstances.
(set-source! completion-entry value)
Identifier (not necessarily human-readable) identifying where this completion came from.
Identifier (not necessarily human-readable) identifying where this completion came from.
(set-source-display! completion-entry value)
Human-readable description of the source
.
Human-readable description of the `source`.
(snippet completion-entry)
insertText
should be interpreted as a snippet if true.
Returns: true | undefined
`insertText` should be interpreted as a snippet if true. **Returns:** `true | undefined`
(sort-text completion-entry)
A string that is used for comparing completion items so that they can be ordered. This is often the same as the name but may be different in certain circumstances.
Returns: string
A string that is used for comparing completion items so that they can be ordered. This is often the same as the name but may be different in certain circumstances. **Returns:** `string`
(source completion-entry)
Identifier (not necessarily human-readable) identifying where this completion came from.
Returns: string | undefined
Identifier (not necessarily human-readable) identifying where this completion came from. **Returns:** `string | undefined`
(source-display completion-entry)
Human-readable description of the source
.
Returns: SymbolDisplayPart[] | undefined
Human-readable description of the `source`. **Returns:** `SymbolDisplayPart[] | undefined`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close