Skip to content

Autocomplete: The same context appears twice in the prompt coming from RecentlyVisitedRanges #5336

@ferenci84

Description

@ferenci84

Before submitting your bug report

Relevant environment info

- OS:
- Continue version: 1.1.25
- IDE version: VS Code
- Model: Together.ai Qwen Coder 32B Instruct
- config:
  
"tabAutocompleteModel": {
    "title": "Together Qwen2.5 Coder",
    "provider": "together",
    "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
    "apiKey": "",
    "completionOptions": {
      "temperature": 0.5,
      "topP": 0.999,
      "topK": 250,
      "maxTokens": 100
    }
  },
  "tabAutocompleteOptions": {
    "maxPromptTokens": 1024,
    "debounceDelay": 500,
    "maxSuffixPercentage": 0.2,
    "prefixPercentage": 0.3,
    "experimental_includeClipboard": false,
    "experimental_includeRecentlyVisitedRanges": true,
    "experimental_includeRecentlyEditedRanges": false,
    "experimental_includeDiff": false,
    "useImports": true
  }

Description

In the context part of the completion, the same file and range appears twice, as can be seen on the image:
Image

To reproduce

Use the experimental configuration above to enable only RecentlyEditedRanges. Visit more than one place. Trigger autocomplete.

Log output

Metadata

Metadata

Assignees

Labels

"needs-triage"area:autocompleteRelates to the auto complete featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions