Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
@exetroncorp

Description

@exetroncorp

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.

26.06.2025_00.20.32_REC.mp4

Expected

No extra bracket like in openvscode-server or codespaces :

codespace_REC.mp4

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 :

26.06.2025_00.20.32_REC.mp4

Working example on codespace :

codespace_REC.mp4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions