Skip to content

Ignoring file mechanism #2

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SaraSaadoun
Copy link

Description

File access control mechanism is implemented through ClineIgnoreController:

Commands:

Prevent access to the ignored files

  • list_files
  • read_file
  • write_to_file
  • search_files
  • list_code_definition_names

Environment Details:

Filters results to not return anything for ignored patterns.

  • Visible Files
  • Open Tabs

@ Mentions:
Mentions are still allowed universally; if the user wants to mention an ignored file they should be allowed

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

First, I created a .clineignore file in the directory with the content provided below:

ClineIgnore File

Then, I tested the following commands with the files listed in the .clineignore file:

1. read_file command:

Read File

2. search_files, read_file commands:

Search Files 1

Search Files 2

3. write_file command:

Write File

Checklist:

  • My code follows the patterns of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Additional context

Related Issues

Reviewers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant