continue
continue copied to clipboard
Repository map not working as expected with different programming languages
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 10
- Continue: v0.8.51
- IDE: VS Code 1.93.0
Description
If a C/C++ Project is opened the repository map used as context using the @Repository Map Context Provider, only files are listed in the map, no function signatures. The opened project also has lots of helper files like python and assembler files: (Output shortened)
Below is a repository map.
For each file in the codebase, this map contains the name of the file, and the signature for any classes, methods, or functions in the file.
[...]
src\submodules\romtable\test\CMakeLists.txt
src\submodules\romtable\test\romtable_test.cpp
src\submodules\romtable\base\CMakeLists.txt
src\submodules\romtable\base\romtable.h
src\submodules\romtable\base\romtablebase.h
src\submodules\romtable\base\romtableinterface.h
[...]
If a Python Project is used, the repository map shows files as well as function signatures in that files. But there are multiple lines with the exact same signature. Moreover, some files seem not to have one but in reality they have function signatures (e.g. change_password.py, command.py):
Below is a repository map.
For each file in the codebase, this map contains the name of the file, and the signature for any classes, methods, or functions in the file.
antennas.py:
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
...
rfid_antennas (channel: int = 0xff, method: str = "GET", payload: str = "")
count_lines.py:
count_lines_in_directory (path)
...
count_lines_in_directory (path)
...
count_lines_in_directory (path)
...
count_lines_in_directory (path)
...
count_lines_in_directory (path)
...
count_lines_in_directory (path)
...
count_lines_in_directory (path)
change_password.py
command.py
To reproduce
No response
Log output
No response