question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@link highlighting broken when linking to class

See original GitHub issue

When using the @link doc tag to refer to a class, rather than a method (which is valid), it is not highlighted, however it is for a method.

Environment
  • Operating System: Windows 10
  • JDK version: JavaSE-1.8
  • Visual Studio Code version: 1.52.1
  • Java extension version: 0.73.0
Steps To Reproduce
  1. Open a Java file
  2. Paste in the following Javadoc comment
/**
 * {@link String}
 * {@link String#toCharArray()}
 */

image Notice how only the latter has correct syntax highlighting.

Current Result

Syntax highlighting is only applied to the @link tag when referring to a method.

Expected Result

Syntax highlighting should be applied to the @link tag when referring to a method or a class.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
0dinDcommented, Jan 1, 2021

FYI @fbricon @SamJakob this issue can also be fixed via semantic highlighting. I had this in mind for my next iteration of semantic highlighting improvements, and I’ve actually already implemented a fix for this specific issue, which has been sitting on my local development branch for a while.

Sadly I got busy and never got to the point of submitting a PR. But I think I’ll have time to do that next week. So if all goes well I’m guessing this can make it into the next release of the extension.

Also, isn’t the TextMate grammar defined by the extension itself now, since #1638? I mean, the issue still has to be fixed upstream, but we don’t really depend upon VS Code anymore.

0reactions
testforstephencommented, Jan 27, 2021

@0dinD thanks for the fix, i will close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C++ highlighting broken on class template specializations, but ...
With C++, class/struct template declarations break syntax highlighting with template specialization only when there's not an opening brace ...
Read more >
Pagination current link not highlighting - php - Stack Overflow
According to my pagination library, all my pagination links are printed out as class="pagination-num" and the class="pagination-current" is ...
Read more >
Page link repair instructions
Broken links and missing images often have the same causes, often as simple as a capitalization error in a file name. See below...
Read more >
How do I validate links in a course? - Canvas Community
As an instructor, you can verify links to course content throughout your course to ensure they are valid. You can check these links...
Read more >
Hyperlinks not working in Outlook? How to make links open ...
The article explains why hyperlinks may not be working in Outlook and provides several solutions to fix the issue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found