Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lsp): support linking to symbols in JSDoc on hover #13631

Merged
merged 4 commits into from
Feb 9, 2022

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Feb 9, 2022

Closes #13198

@kitsonk kitsonk changed the title [WIP] feat(lsp): support linking to symbols in JSDoc on hover feat(lsp): support linking to symbols in JSDoc on hover Feb 9, 2022
@kitsonk kitsonk requested a review from dsherret February 9, 2022 11:03
@kitsonk kitsonk marked this pull request as ready for review February 9, 2022 11:03
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM! We just need to make that one regex case insensistive.

cli/lsp/tsc.rs Outdated Show resolved Hide resolved
impl QuickInfo {
pub fn to_hover(&self, line_index: Arc<LineIndex>) -> lsp::Hover {
let mut contents = Vec::<lsp::MarkedString>::new();
pub(crate) fn to_hover(
Copy link
Member

Choose a reason for hiding this comment

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

One day we should do a quick pass on the lsp code to remove the pub(crate) to just pub. The pub(crate) is unnecessary because most of this isn't even exported from the module IIRC and it's very viral. Not a big deal though.

Copy link
Member

Choose a reason for hiding this comment

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

agree!

(cc @bartlomieju)

@kitsonk kitsonk merged commit 2f2c778 into denoland:main Feb 9, 2022
@kitsonk kitsonk deleted the kitsonk/issue13198 branch February 9, 2022 23:08
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.

lsp: support @link to symbol in JSDoc markdown
3 participants