Liking cljdoc? Tell your friends :D

dots.typescript.server.protocol.completion-entry

An item found in a completion response.

An item found in a completion response.
raw docstring

datacljs

(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`
sourceraw docstring

filter-textcljs

(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`
sourceraw docstring

from-unchecked-filecljs

(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`
sourceraw docstring

has-actioncljs

(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`
sourceraw docstring

import-statement-completioncljs

(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`
sourceraw docstring

insert-textcljs

(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`
sourceraw docstring

kindcljs

(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`
sourceraw docstring

kind-modifierscljs

(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`
sourceraw docstring

label-detailscljs

(label-details completion-entry)

Additional details for the label.

Returns: CompletionEntryLabelDetails | undefined

Additional details for the label.

**Returns:** `CompletionEntryLabelDetails | undefined`
sourceraw docstring

namecljs

(name completion-entry)

The symbol's name.

Returns: string

The symbol's name.

**Returns:** `string`
sourceraw docstring

package-json-importcljs

(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`
sourceraw docstring

(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`
sourceraw docstring

replacement-spancljs

(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`
sourceraw docstring

set-data!cljs

(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.
sourceraw docstring

set-filter-text!cljs

(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.
sourceraw docstring

set-has-action!cljs

(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.
sourceraw docstring

set-insert-text!cljs

(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.
sourceraw docstring

set-is-from-unchecked-file!cljs

(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.
sourceraw docstring

set-is-import-statement-completion!cljs

(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.
sourceraw docstring

set-is-package-json-import!cljs

(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.
sourceraw docstring

set-is-recommended!cljs

(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.
sourceraw docstring

set-is-snippet!cljs

(set-is-snippet! completion-entry value)

insertText should be interpreted as a snippet if true.

`insertText` should be interpreted as a snippet if true.
sourceraw docstring

set-kind!cljs

(set-kind! completion-entry value)

The symbol's kind (such as 'className' or 'parameterName').

The symbol's kind (such as 'className' or 'parameterName').
sourceraw docstring

set-kind-modifiers!cljs

(set-kind-modifiers! completion-entry value)

Optional modifiers for the kind (such as 'public').

Optional modifiers for the kind (such as 'public').
sourceraw docstring

set-label-details!cljs

(set-label-details! completion-entry value)

Additional details for the label.

Additional details for the label.
sourceraw docstring

set-name!cljs

(set-name! completion-entry value)

The symbol's name.

The symbol's name.
sourceraw docstring

set-replacement-span!cljs

(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.
sourceraw docstring

set-sort-text!cljs

(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.
sourceraw docstring

set-source!cljs

(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.
sourceraw docstring

set-source-display!cljs

(set-source-display! completion-entry value)

Human-readable description of the source.

Human-readable description of the `source`.
sourceraw docstring

snippetcljs

(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`
sourceraw docstring

sort-textcljs

(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`
sourceraw docstring

sourcecljs

(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`
sourceraw docstring

source-displaycljs

(source-display completion-entry)

Human-readable description of the source.

Returns: SymbolDisplayPart[] | undefined

Human-readable description of the `source`.

**Returns:** `SymbolDisplayPart[] | undefined`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close