Skip to content

Add tests for hover contributions #53

Closed
@alexkreidler

Description

@alexkreidler

The current tests use schema contributions to test various schema features.

However there are no tests for hover contributions, which poses a problem if one wanted to write alternative hover providers.

The relevant code is here:

for (let i = this.contributions.length - 1; i >= 0; i--) {
const contribution = this.contributions[i];
const promise = contribution.getInfoContribution(document.uri, location);
if (promise) {
return promise.then(htmlContent => createHover(htmlContent));
}
}

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions