Skip to content

Basic implementation for textDocument/documentLink#8446

Open
odisseus wants to merge 1 commit into
scalameta:main-v2from
odisseus:document-link
Open

Basic implementation for textDocument/documentLink#8446
odisseus wants to merge 1 commit into
scalameta:main-v2from
odisseus:document-link

Conversation

@odisseus
Copy link
Copy Markdown
Collaborator

@odisseus odisseus commented Jun 3, 2026

No description provided.

@odisseus odisseus requested a review from tgodzik June 3, 2026 14:29
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7578234b-10ee-4406-8fea-5cd171a4fbfe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@odisseus odisseus force-pushed the document-link branch 2 times, most recently from 9f7b009 to ed20bc3 Compare June 3, 2026 17:08
@odisseus odisseus marked this pull request as ready for review June 3, 2026 17:12
Copy link
Copy Markdown
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Do you think we could handle javadoc links as well?

def getLinks(
filePath: AbsolutePath
): util.List[DocumentLink] = {
val urlRegex = raw"https?:\/\/\S+".r
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we use a scanner and extract comments, then only to look inside those comments? We would avoid running the regex on the whole file.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This regex is very simple, so I don't think running it on every line is going to cause problems. Besides, URLs can also occur in string literals.

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