Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 60d4adc

Browse files
committed
refactor: remove references to LSP
1 parent 667caf9 commit 60d4adc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/hoverifier.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { HoverOverlayProps } from './HoverOverlay'
1818
import { findPositionsFromEvents, SupportedMouseEvent } from './positions'
1919
import { CodeViewProps, DOM } from './testutils/dom'
20-
import { createHoverAttachment, createStubActionsFetcher, createStubHoverFetcher } from './testutils/lsp'
20+
import { createHoverAttachment, createStubActionsFetcher, createStubHoverFetcher } from './testutils/fixtures'
2121
import { dispatchMouseEventAtPositionImpure } from './testutils/mouse'
2222
import { LOADING } from './types'
2323

@@ -578,9 +578,10 @@ describe('Hoverifier', () => {
578578
)
579579

580580
const inputDiagram = 'ab'
581-
// There is probably a bug in code that is unrelated to this feature that is causing the PositionAdjuster to be called an extra time.
582-
// It should look like '-(ba)'. That is, we adjust the position from CodeViewToActual for the LSP fetches and then back from CodeViewToActual
583-
// for highlighting the token in the DOM.
581+
// There is probably a bug in code that is unrelated to this feature that is causing the
582+
// PositionAdjuster to be called an extra time. It should look like '-(ba)'. That is, we adjust the
583+
// position from CodeViewToActual for the fetches and then back from CodeViewToActual for
584+
// highlighting the token in the DOM.
584585
const outputDiagram = 'a(ba)'
585586

586587
const outputValues: {

src/testutils/mouse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const createMouseEvent = (type: string, coords: Coordinates) => {
1919
}
2020

2121
const invalidPosition = ({ line, character }: Position, message: string) =>
22-
`Invalid postion L${line}:${character}. ${message}. Remember, LSP Positions are 0-indexed.`
22+
`Invalid position L${line}:${character}. ${message}. Positions are 0-indexed.`
2323

2424
/**
2525
* Dispatch a mouse event at the given position in a code element. This is impure because the current hoverifier

0 commit comments

Comments
 (0)