coder / coder/code-server

Extra brackets automatically added during AI autocompletion with Continue.dev extension

オープン
#7,397 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug triage
主要言語
TypeScript
スター
79.3k
フォーク
6.8k
平均マージ
2日 6時間
マージ済み PR(30日)
41

説明

### Is there an existing issue for this?

- [x] I have searched the existing issues

### OS/Web Information

- Web Browser: Chrome
- Remote OS: Debain 12
- `code-server --version`: 1.101.2

### Steps to Reproduce

## Step 1: Install Continue.dev

Install the Continue.dev extension in your IDE.

## Step 2: Configure Continue with Codestral Free API

Configure Continue to use the Codestral free API key for autocomplete functionality.

### Example Configuration

```yaml
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Codestral
provider: mistral
model: codestral-latest
apiKey: XXXXXXXXXXXXXXXXXXXXXXXXXX
roles:
- autocomplete
- chat
- edit
- apply
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
```

## Step 3: Enable Auto-complete

Enable the auto-complete feature in Continue.dev settings.

## Step 4: Create Test File

Create a new file named `Robertor.java` and add the following comment:

```java
// a java swing programm that takes an input X number and display a circle with the radius of X
```

## Step 5: Test Autocomplete

1. Move to the next line by pressing **Enter**
2. Accept suggestions using the **Tab** key

## Issue: Extra Bracket Appears

An extra bracket appears during autocomplete, as demonstrated in the capture video.

https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217

### Expected

No extra bracket like in openvscode-server or codespaces :

https://github.com/user-attachments/assets/8e67a3b5-118f-4f26-81d8-d0e11c4f486b

### Actual

I dont know but code completion appearing in continue console doesnt'have bracket .
That means that the issue is during insertion in the ghost view text , something is auto adding brackets.

### Logs

```shell

```

### Screenshot/Video

On code-server , extra bracket :

https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217

Working example on codespace :

https://github.com/user-attachments/assets/aadf4d89-d307-4e96-b304-ed4461a8c5d2

### Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

### Does this bug reproduce in GitHub Codespaces?

No, this works as expected in GitHub Codespaces

### Are you accessing code-server over a secure context?

- [x] I am using a secure context.

### Notes

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。