ReadonlyidentifierUnique identifier for this provider
PrivateinflightCache of in-flight requests to avoid duplicates (cacheKey -> Promise)
PrivatemessageMessage handler disposable for cleanup
ReadonlynameHuman-readable name displayed in UI
PrivatependingMap of pending requests (requestId -> resolve function)
ReadonlyrankProvider rank - higher rank = higher priority (600 > kernel's 550)
PrivaterequestRequest counter for generating unique IDs
PrivateconvertConvert VS Code CompletionItemKind to JupyterLab completion type.
PrivatedetectDetect the language of the active cell from context.
Dispose of the provider and clean up resources.
Fetch completion suggestions from LSP for dropdown menu.
Completion request with text and cursor position
Completion context with widget, editor, session
Promise resolving to completion reply for dropdown
PrivategetGet the cell ID from the context.
PrivatehandleHandle messages from extension host. Called by MessageHandler with the message data directly (not MessageEvent).
Check if this provider is applicable to the current context. Returns true for Python and Markdown cells (LSP works without kernel).
Completion context with widget, editor, session
Promise resolving to true if provider should be used
PrivateoffsetConvert character offset to line/character position.
The full text content
Character offset in the text
Line and character position (0-indexed)
PrivatepositionConvert line/character position to character offset.
The full text content
Line and character position
Character offset in the text
PrivaterequestRequest completions from extension host via postMessage. Deduplicates identical requests to avoid spamming Pylance.
LSP Tab completion provider for notebook cells. Provides dropdown menu completions (triggered by Tab key). Supports Python (via Pylance) and Markdown (via built-in VS Code markdown LSP).