ReadonlyidentifierUnique identifier for this completion provider
ReadonlynameHuman-readable name displayed in UI
PrivatependingMap of pending requests (requestId -> resolve function)
PrivaterequestRequest counter for generating unique IDs
PrivatedetectDetect the language of the cell from the context.
Dispose of the provider and clean up resources.
Fetch completion suggestions from LSP.
Completion request with text and cursor position
Completion context
Promise resolving to list of completion items
PrivategetGet the cell ID from the context.
PrivatehandleHandle messages from extension host.
PrivateoffsetConvert character offset to line/character position.
The full text content
Character offset in the text
Line and character position (0-indexed)
Privaterequest
LSP completion provider for notebook cells. Supports Python (via Pylance) and Markdown (via built-in VS Code markdown LSP).