huggingface/llm-vscode

[BUG] Crash on new untitled VS Code file

DataOps7 opened this issue · 3 comments

Bug

To reproduce:

  • Press Ctrl + n in VS Code
  • Start typing

The LLM LS crashes on every completion,
After 5 crashes it doesn't restart, which makes the extension unusable.

Temporary fix

Add the following code snippet to the provider's provideInlineCompletionItems method:

if (document.isUntitled) {
    return;
}

This will deactivate the extension on new untitled documents which would save you from crashes,
until the error is properly fixed in the llm-ls.

This issue is stale because it has been open for 30 days with no activity.

Is this still an issue ?

This issue is stale because it has been open for 30 days with no activity.