Skip to content

Assistant: Provide a way to exclude some files from inline completions #7724

@jmcphers

Description

@jmcphers

Currently, Assistant provides inline completions everywhere:

const complDisp = vscode.languages.registerInlineCompletionItemProvider(ALL_DOCUMENTS_SELECTOR, completionProvider, { displayName: modelConfig.name });

This can be at best annoying but at worst a security concern (e.g. you don't want it autocompleting secrets, nor sending secrets as context to a third party).

There are two sides to this issue; one is excluding auto-completions from being shown to the user (e.g. as in github.copilot.enable for a set of file types), and the other is excluding the file's content from inclusion in the context sent to the model for privacy and security reasons.

https://docs.github.com/en/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot#limitations

Positron should ship with exclusions pre-configured for typical data science projects files that contain secrets, such as .Renviron and .env files (for example).

Metadata

Metadata

Assignees

Labels

area: assistantIssues related to Positron Assistant

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions