From 2a1277d1a075a1c2a5447fd5889bd7b487778c82 Mon Sep 17 00:00:00 2001 From: rjmacarthy Date: Wed, 10 Apr 2024 11:35:33 +0100 Subject: [PATCH] fix duplicate lines down --- src/extension/completion-formatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/completion-formatter.ts b/src/extension/completion-formatter.ts index d51a9d34..e1bd0b36 100644 --- a/src/extension/completion-formatter.ts +++ b/src/extension/completion-formatter.ts @@ -165,7 +165,7 @@ export class CompletionFormatter { const lineCount = this._editor.document.lineCount let nextLineIndex = this._cursorPosition.line + 1 while ( - nextLineIndex < this._cursorPosition.line + 1 && + nextLineIndex < this._cursorPosition.line + 3 && nextLineIndex < lineCount ) { const line = this._editor.document.lineAt(nextLineIndex)