Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend filetypes Pieces looks into for context #98

Open
kristofmulier opened this issue Oct 21, 2024 · 0 comments
Open

Extend filetypes Pieces looks into for context #98

kristofmulier opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kristofmulier
Copy link
Contributor

kristofmulier commented Oct 21, 2024

This is how I add additional paths to the Pieces Copilot:

import pieces_os_client
self.__pieces_client = pieces_os_client.wrapper.client.PiecesClient()
...
for p in additional_paths:
    if p not in self.__pieces_client.copilot.context.paths:
        self.__pieces_client.copilot.context.paths.append(p)
    continue

Pieces looks in these folders for content that can serve as context to the LLM. However, I learned from @mason-at-pieces that it skips certain filetypes that are of utmost importance to Embedded Developers. Please add the following filetypes:

ext_assembly = ['.s', '.S', '.asm']
ext_c = ['.c']
ext_h = ['.h']
ext_cpp = ['.c++', '.cc', '.cpp', '.cxx']
ext_hpp = ['.h++', '.hh', '.hpp', '.hxx', 'H']
ext_cmake = ['.cmake']
ext_linkerscript = ['.ld']
ext_make = ['.make', '.mk', '.mkf', 'makefile']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants