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

[plug-in] Languages API - Register hover provider #2869

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

akurinnoy
Copy link
Contributor

Signed-off-by: Oleksii Kurinnyi okurinny@redhat.com

This PR adds the ability to register custom hover provider. Now it is possible to show hover messages from a plugin.
selection_011

resolves #2601

Introduces the ability to register a hover provider.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
@akurinnoy akurinnoy self-assigned this Sep 13, 2018
@benoitf benoitf added the plug-in system issues related to the plug-in system label Sep 13, 2018
@benoitf benoitf changed the title Languages API - Register hover provider [plug-in] Languages API - Register hover provider Sep 13, 2018
@@ -189,7 +189,7 @@ export class DocumentDataExt {
}

if (range.isSingleLine) {
return this.lines[range.start.line].substring(range.start.character, range.end.character);
return this.lines[range.start.line - 1].substring(range.start.character, range.end.character);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have some tests for the range ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK we do not have any test for API so far

@akurinnoy akurinnoy merged commit edea768 into eclipse-theia:master Sep 13, 2018
@ashumilova ashumilova removed their request for review September 13, 2018 10:53
@akurinnoy akurinnoy deleted the issue-2601-r branch July 30, 2019 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[plug-in][languages] Register hover provider
4 participants