Skip to content

Commit 01e66e1

Browse files
committed
fix: number of prepend lines sent to LSP
1 parent 4934e2a commit 01e66e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/showPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function handleMessage(
5858
_.set(info, `["${activeEditor.uri}"].chapter`, message.chapter ?? 1);
5959
// TODO: message.prepend can be undefined in runtime, investigate
6060
const nPrependLines = message.prepend
61-
? message.prepend.split("\n").length
61+
? message.prepend.split("\n").length + 2
6262
: 0;
6363
_.set(info, `["${activeEditor.uri}"].prepend`, nPrependLines);
6464
context.globalState.update("info", info);

0 commit comments

Comments
 (0)