You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
feat: add optional position adjuster to HoverifierOptions (#38)
This commit adds the option to adjust positions used in codeintellify. This is needed because some code hosts change whitespace to fit their needs in the UI. In order to get correct code intelligence we need to be able to map the position that we found in the DOM to the actual position of that token in it's source.
* This test ensures that the adjustPosition options is being called in the ways we expect. This test is actually not the best way to ensure the feature
120
+
* works as expected. This is a good example of a bad side effect of how the main `hoverifier.ts` file is too tightly integrated with itself. Ideally, I'd be able to assert
121
+
* that the effected positions have actually been adjusted as intended but this is impossible with the current implementation. We can assert that the `HoverFetcher` and `JumpURLFetcher`s
122
+
* have the adjusted positions (AdjustmentDirection.CodeViewToActual). However, we cannot reliably assert that the code "highlighting" the token has the position adjusted (AdjustmentDirection.ActualToCodeView).
123
+
*/
124
+
it('PositionAdjuster gets called when expected',()=>{
0 commit comments