continue icon indicating copy to clipboard operation
continue copied to clipboard

! symbol does not work in .continueignore( Whitelist Rules )

Open AfterStories opened this issue 5 months ago • 3 comments

Before submitting your bug report

Relevant environment info

- OS:win
- Continue version:main branch

Description

using the latest main branch code for testing I think the latest code seems do something to the .continueignore file content, which makes the use of the ! symbol to implement the whitelist rule not work.

I first wrote a * in the .continueignore file to ignore all files,

# First, ignore all files
*

which means not to index any files. I think it worked. The indexing progress bar flashed and finished instantly.

Then I edited the .continueignore file as follows, hoping to specify that the gsrc/com directories should not be ignored ,I want to indexing it:

# 1. Ignore all 
*

# 2. Allow the gsrc directory itself
!gsrc/

# 3. Allow the gsrc/com directory itself
!gsrc/com/

# 4. Allow everything under gsrc/com (including subdirectories and files)
!gsrc/com/**

Then I clicked re-index

The indexing progress bar still flashed and finished instantly. I checked the index.sqlite file through the DB.Browser.for.SQLite tool and it was still empty

I think this configuration is correct, If this is incorrect please let me know ,I think it complies with the writing rules of .gitignore: first ignore everything, then use the ! symbol to allow something not to be ignore. Rules are matched line by line from top to bottom, and the later rules will overwrite the earlier ones.

And this configuration was worked when I used Continue 0.9 version before, now it does not work in the new code

To reproduce

It seems that the current use of ! symbol does not work in .continueignore

If I just write a directory normally in the .continueignore file:

gsrc/

This gsrc directory will indeed be ignored, and other files are indexed normally and saved in index.sqlite

Log output


AfterStories avatar May 26 '25 07:05 AfterStories