llama-coder icon indicating copy to clipboard operation
llama-coder copied to clipboard

Inconsistent Tab Behavior Due to Suggestions Ending with Newline

Open NekoSosu opened this issue 1 year ago • 0 comments

s

I've noticed that code suggestions from the extension sometimes include a trailing newline as shown in the screenshot, leading to an issue where pressing the Tab key inserts a tab space instead of accepting the suggestion. This disrupts the coding flow. Maybe this could be fixed by triming the newline from the end of suggestions before they're returned, as shown below:

if (res.endsWith('\n')) {
    res = res.slice(0, -1);
}

NekoSosu avatar Mar 12 '24 22:03 NekoSosu