Skip to main content
Module

x/pbkit/language-server/lsp.ts>CompletionList

Protobuf toolkit for modern web development
Latest
interface CompletionList
import { type CompletionList } from "https://deno.land/x/pbkit@v0.0.70/language-server/lsp.ts";

Represents a collection of completion items to be presented in the editor.

Properties

isIncomplete: boolean

This list is not complete. Further typing should result in recomputing this list.

Recomputed lists have all their items replaced (not appended) in the incomplete completion sessions.

optional
itemDefaults: { commitCharacters?: string[]; editRange?: Range | { insert: Range; replace: Range; }; insertTextFormat?: InsertTextFormat; insertTextMode?: InsertTextMode; data?: any; }

In many cases the items of an actual completion result share the same value for properties like commitCharacters or the range of a text edit. A completion list can therefore define item defaults which will be used if a completion item itself doesn't specify the value.

If a completion list specifies a default value and a completion item also specifies a corresponding value the one from the item is used.

Servers are only allowed to return default values if the client signals support for this via the completionList.itemDefaults capability.

The completion items.