Skip to content

completionNeedsResolve

completionNeedsResolve(item, serverCapabilities): boolean

Whether an accepted item still needs a completionItem/resolve round-trip.

Servers routinely send a list whose items carry only a label, deferring documentation and — the one that matters — the import edit until resolve. Applying such an item directly is what silently drops auto-imports.

CompletionItem

ServerCapabilities<any> | null | undefined

boolean