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
Adding ChangeListManager to parse ignored Files in Project and sortin… #4453
Conversation
…g through project modules for accurate file parsing.
|
||
if (!current.isDirectory) { | ||
// Using both featureDevSessionContext and changeListManager to ignore files. | ||
// featureDevSessionContext is used to only ignore files in gitignore in project root and uses regex pattern matching. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why wouldn't we just rely on ChangeListManager? it is already gitignore aware
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its not checking gitignore files in tests. so thought it'd be prudent to keep both in. i was trying choose to leave featureDevSessionContext in or out.
...ws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt
Outdated
Show resolved
Hide resolved
...ws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt
Outdated
Show resolved
Hide resolved
|
||
// Adding gitignore file and gitignore file member for testing. | ||
// The tests include the markdown file but not these two files. | ||
projectRule.fixture.addFileToProject("/.gitignore", "node_modules\n.idea\n.vscode\n.DS_Store").virtualFile | ||
projectRule.fixture.addFileToProject("test.idea", "ref: refs/heads/main") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to figure out tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. i have been working to write tests including gitignore files.
Quality Gate passedIssues Measures |
…g through project modules for accurate file parsing.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.