Skip to content

Commit 3f6dbb0

Browse files
authored
lightspeed: multi-line completion with recent vscode (#2141)
Ensure multiline completions also work with the recent vscode releases. See: 55e2720
1 parent 55e2720 commit 3f6dbb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/lightspeed/inlineSuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ const onDoMultiTasksSuggestion: CallbackEntry = async function (
465465
if (leadingWhitespaceCount > 0) {
466466
leadingWhitespace = " ".repeat(leadingWhitespaceCount);
467467
}
468-
let insertText = `${leadingWhitespace}${LIGHTSPEED_SUGGESTION_GHOST_TEXT_COMMENT}${prediction}`;
468+
let insertText = `${leadingWhitespace}${LIGHTSPEED_SUGGESTION_GHOST_TEXT_COMMENT}${prediction.trimEnd()}`;
469469
insertText = adjustInlineSuggestionIndent(
470470
insertText,
471471
inlinePosition.position,

0 commit comments

Comments
 (0)