Skip to content

Conversation

@observerw
Copy link
Collaborator

Summary

  • Implemented textDocument/inlayHint with concurrent resolve support.
  • Implemented workspace/inlayHint/refresh server-to-client request.
  • Added get_inlay_hint_label helper for easy label extraction.
  • Fully compliant with LSP 3.17 specification.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements LSP 3.17 Inlay Hint capabilities, adding support for both client-to-server requests to fetch inlay hints and server-to-client refresh requests.

Key changes:

  • Added textDocument/inlayHint and inlayHint/resolve request capabilities with concurrent resolution support
  • Implemented workspace/inlayHint/refresh server request handling
  • Provided a helper method get_inlay_hint_label for convenient label extraction from hints

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/lsp_client/capability/request/inlay_hint.py Implements the main inlay hint request capability with support for fetching hints from a range and optionally resolving them concurrently, plus a helper to extract labels
src/lsp_client/capability/request/__init__.py Exports the new WithRequestInlayHint capability class
src/lsp_client/capability/server_request/inlay_hint_refresh.py Implements handling for server-initiated inlay hint refresh requests
src/lsp_client/capability/server_request/__init__.py Exports the new WithRespondInlayHintRefresh capability class

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

async def request_inlay_hint(
self,
file_path: AnyPath,
range: lsp_type.Range,
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent import style: this file uses lsp_type.Range directly, while similar capability files like inline_value.py import Range from lsp_client.utils.types and use it without the prefix. For consistency with the codebase, consider importing Range directly and using it as range: Range.

Copilot uses AI. Check for mistakes.
observerw and others added 4 commits December 23, 2025 02:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@observerw observerw merged commit 833a32c into main Dec 23, 2025
0 of 3 checks passed
@observerw observerw deleted the feature/inlay-hint branch December 28, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants