huggingface / huggingface/llm-vscode

[BUG] Completion doesn't override parentheses

Open
#128 8 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
1.3k
Forks
142
Avg merge
3m
Merged PRs (30d)
2

Description

Extension: 0.1.6
LLM LS: 0.4.0

Usually when you declare a function or other variables, the editor adds a closing bracket.

For example:

```python
def foo()
```

When you type `(`, the editor adds `)` automatically. After accepting the completion, the output looks something like:

```python
def foo(bar: str):)
```

Maybe we should use the bracket as a stop token, but that would mean the completion would be one line only for these cases.

Note: I'm using a local model

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.