Skip to content

Conversation

@ahejlsberg
Copy link
Member

Fixes #1895.

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 support for creating clickable links in quick info tooltips from JSDoc @link tags. The main change converts plain text JSDoc link references into Markdown-formatted links that allow navigation to declarations within the codebase or to external URLs.

Key Changes

  • Refactored JSDoc link handling to generate clickable Markdown links instead of plain text
  • Added support for both code declarations (file://... links) and HTTP/HTTPS URLs in JSDoc links
  • Converted several utility functions to methods on LanguageService to enable access to position converters

Reviewed Changes

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

File Description
internal/ls/hover.go Core implementation of JSDoc link conversion to Markdown links with declaration resolution
internal/ls/completions.go Updated to use refactored method for getting completion details with documentation
internal/ls/string_completions.go Updated to use refactored method for string literal completion details

@ahejlsberg ahejlsberg added this pull request to the merge queue Oct 23, 2025
@jakebailey jakebailey removed this pull request from the merge queue due to a manual request Oct 23, 2025
@jakebailey jakebailey added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit 18eabdd Oct 23, 2025
22 checks passed
@jakebailey jakebailey deleted the fix-1895 branch October 23, 2025 18:58
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.

Add support for JSDoc links in editors

3 participants