Describe the bug
Steps to reproduce
1.In a Java file with a total of 300 lines, modify the code for lines 100 to 120, and execute /simplify xxx.java
Expected behaviour
Only the modified code lines from lines 100 to 120 are simplified and do not affect other unmodified code segments
Actual behaviour
.xxx.java the entire file contains many methods of code that have been modified, including but not limited to variable name adjustments and simplification of the trineye operator logic
Environment
- pi-continuous-learning version: pi-simplify:0.2.2
- Pi version (
pi --version): 0.76.0
- Node.js version (
node --version): v22.19.0
- OS: Win11
Logs
Describe the bug
Steps to reproduce
1.In a Java file with a total of 300 lines, modify the code for lines 100 to 120, and execute /simplify xxx.java
Expected behaviour
Only the modified code lines from lines 100 to 120 are simplified and do not affect other unmodified code segments
Actual behaviour
.xxx.java the entire file contains many methods of code that have been modified, including but not limited to variable name adjustments and simplification of the trineye operator logic
Environment
pi --version): 0.76.0node --version): v22.19.0Logs