mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 11:14:59 +00:00
fix: improve AI comment detection accuracy in FileWatcher
This commit is contained in:
parent
ee7bb71a05
commit
97bf5e8d69
4 changed files with 47 additions and 31 deletions
30
tests/fixtures/watch.js
vendored
30
tests/fixtures/watch.js
vendored
|
@ -1,27 +1,35 @@
|
|||
// Regular AI comment
|
||||
//ai do something
|
||||
//AI make this better
|
||||
//ai! urgent change needed
|
||||
//AI! another urgent one
|
||||
// ai with space
|
||||
// AI with caps
|
||||
// ai! with bang
|
||||
//ai do 1 something
|
||||
//AI make 2 this better
|
||||
//ai! urgent 3 change needed
|
||||
//AI! another 4 urgent one
|
||||
// ai with 5 space
|
||||
// AI with 6 caps
|
||||
// ai! with 7 bang
|
||||
// this is not an ai comment
|
||||
// aider is not an ai comment
|
||||
// aider is not an ai! comment
|
||||
|
||||
function dummyFunction() {
|
||||
// ai inside function
|
||||
// ai inside 8 function
|
||||
return true;
|
||||
}
|
||||
|
||||
class Example {
|
||||
constructor() {
|
||||
// ai in constructor
|
||||
// ai in 9 constructor
|
||||
this.value = 42;
|
||||
}
|
||||
|
||||
method() {
|
||||
// ai in method
|
||||
// ai in 10 method
|
||||
return this.value;
|
||||
}
|
||||
// ai!
|
||||
//ai
|
||||
//ai!
|
||||
// 11-13
|
||||
|
||||
method2() { // ai 14
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue