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
web: Add document highlight providers to API and extension host #11822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to have tests :)
- unit tests at least for merging results
- integration just to make sure it is hooked up e2e here
- UI tests maybe? Either via percy snapshots or react testing-library
Done.
That only tests the old style services and I don't see integration tests for the new code host extension.
Could you guide me through a good way to do this/mock the required data? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall!
shared/src/api/extension/extensionHost.documentHighlights.test.ts
Outdated
Show resolved
Hide resolved
shared/src/api/extension/extensionHost.documentHighlights.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Felix Becker <felix.b@outlook.com>
…sourcegraph into document-highlight-provider
shared/src/api/extension/extensionHost.documentHighlights.test.ts
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #11822 +/- ##
==========================================
- Coverage 49.92% 47.77% -2.15%
==========================================
Files 1506 1402 -104
Lines 88470 79876 -8594
Branches 6837 6793 -44
==========================================
- Hits 44165 38161 -6004
+ Misses 40383 38140 -2243
+ Partials 3922 3575 -347
|
🎉 Tests pass! |
Co-authored-by: Felix Becker <felix.b@outlook.com>
…sourcegraph into document-highlight-provider
Part of #10868. Sibling PRs: sourcegraph/code-intel-extensions#409 and sourcegraph/codeintellify#278
This PR adds the DocumentHighlightProvider to the extension API. The behavior is very straightforward, but there are lot of places that needed to be touched to thread things through to the leaves of the app appropriately. Please look with a close eye!