Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#7,397 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
debian, java, typescript
Lĩnh vực
devtools, frontend, web-dev

Hướng nghiên cứu

Tái hiện vấn đề với Continue.dev bằng cấu hình Codestral trong Robertor.java, sau đó so sánh việc chèn phần hoàn thành mã với VS Code gốc hoặc GitHub Codespaces. Bắt đầu bằng cách lần theo điểm vào chèn văn bản của ghost-view được đề cập trong báo cáo; hoàn thành khi việc chấp nhận tính năng tự động hoàn thành không còn thêm một dấu ngoặc thừa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug triage
Is there an existing issue for this?
  • 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
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:

// 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

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?
  • I am using a secure context.
Notes

No response

Ngôn ngữ chính
TypeScript
Star
79.4k
Fork
6.9k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
39

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coder/code-server

Tất cả issue của coder/code-server

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.