continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.13k stars 1.64k forks source link

Autocomplete prompt did not use content from other files #2547

Open liulisi16323 opened 3 weeks ago

liulisi16323 commented 3 weeks ago

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config.json:

Description

According to the doc context-selection, the context selection for codecomplete includes Definitions from the Language Server Protocol and Imported files, but I did not see these contents in the prompt log. image

To reproduce

No response

Log output

No response

sestinj commented 3 weeks ago

@liulisi16323 try setting tabAutocompleteOptions.useRootPathContext to true in config.json. This is a new feature that we've been incrementally rolling out and will make it fully used soon, but for now this will guarantee that we use the LSP

liulisi16323 commented 3 weeks ago

@liulisi16323 try setting tabAutocompleteOptions.useRootPathContext to true in config.json. This is a new feature that we've been incrementally rolling out and will make it fully used soon, but for now this will guarantee that we use the LSP

still not working. vscode v1.94.2, continue v0.9.217. set in config.json

  "tabAutocompleteOptions": {
    "useRootPathContext": true
  } 

image

F1shez commented 2 weeks ago

same issue image