Skip to content

qt-core: Implement hover providers with links to documentation#519

Merged
benchoq merged 1 commit into
qt-labs:devfrom
benchoq:ben_0630_add_hover_provider
Jul 8, 2026
Merged

qt-core: Implement hover providers with links to documentation#519
benchoq merged 1 commit into
qt-labs:devfrom
benchoq:ben_0630_add_hover_provider

Conversation

@benchoq

@benchoq benchoq commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Add two vscode.HoverProvider implementations that provide links to the relevant Qt documentation in hover tooltips, making it easier to access the documentation.

One provider is used for general source files, while the other is specifically for CMakeLists.txt.

@benchoq

benchoq commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author
image

@OrkunTokdemir

Copy link
Copy Markdown
Collaborator

It doesn't work if the cursor is not on the word, but the user hovers over it. It returns No word found at the cursor.. Is it possible to try to get the link from what we hover over instead of checking where the cursor is?

@benchoq

benchoq commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

It doesn't work if the cursor is not on the word, but the user hovers over it. It returns No word found at the cursor.. Is it possible to try to get the link from what we hover over instead of checking where the cursor is?

Ah, good point! Will look into it.

@benchoq benchoq marked this pull request as draft July 7, 2026 08:38
@benchoq benchoq force-pushed the ben_0630_add_hover_provider branch from 8b94979 to 49f3e11 Compare July 7, 2026 09:00
@benchoq benchoq marked this pull request as ready for review July 7, 2026 09:01
@benchoq benchoq requested a review from OrkunTokdemir July 7, 2026 09:01
Add two `vscode.HoverProvider` implementations that provide links to
the relevant Qt documentation in hover tooltips, making it easier to
access the documentation.

One provider is used for general source files, while the other is
specifically for `CMakeLists.txt`.
@benchoq benchoq force-pushed the ben_0630_add_hover_provider branch from 49f3e11 to 386ee71 Compare July 7, 2026 12:12
@benchoq benchoq merged commit a4feec8 into qt-labs:dev Jul 8, 2026
29 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants