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: implement definitions for markdown #71

Merged
merged 2 commits into from
Jan 21, 2024
Merged

Conversation

remcohaszing
Copy link
Member

This was already supported by vscode-markdown-languageservice, but not implemented by volar-service-markdown.

This was already supported by `vscode-markdown-languageservice`, but not
implemented by `volar-service-markdown`.
targetUri: location.uri,
targetRange: location.range,
targetSelectionRange: location.range,
}));
Copy link
Member Author

@remcohaszing remcohaszing Jan 12, 2024

Choose a reason for hiding this comment

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

LSP allows textDocument/definitions to return Location | Location[] | LocationLink[] | null, so maybe Volar should allow this too instead of doing the this conversion.

Copy link
Member

Choose a reason for hiding this comment

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

The ServicePlugin API required the only most demanding type because Volar needs to merge the results of multiple services behind the scenes.

@johnsoncodehk
Copy link
Member

LGMT, thanks!

@johnsoncodehk johnsoncodehk merged commit 9cf0af8 into master Jan 21, 2024
1 check failed
@johnsoncodehk johnsoncodehk deleted the markdown-definitions branch January 21, 2024 05:13
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