Skip to content

Commit

Permalink
ci(lint): auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 22, 2024
1 parent 06e4ca3 commit 0230a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-twoslash-queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function create(ts: typeof import('typescript')): ServicePlugin {
const inlayHints: InlayHint[] = [];

for (const pointer of document.getText(range).matchAll(/^\s*\/\/\s*\^\?/gm)) {
const pointerOffset = pointer.index! + pointer[0].indexOf('^?') + document.offsetAt(range.start);
const pointerOffset = pointer.index + pointer[0].indexOf('^?') + document.offsetAt(range.start);
const pointerPosition = document.positionAt(pointerOffset);
const hoverOffset = document.offsetAt({
line: pointerPosition.line - 1,
Expand Down

0 comments on commit 0230a41

Please sign in to comment.