Commit ·
bd81b49
1
Parent(s): a2f1290
fix: instant re-analyze after apply (direct analyzeText call, no debounce)
Browse files- src/js/editor.js +4 -4
src/js/editor.js
CHANGED
|
@@ -521,8 +521,8 @@ function applySuggestionAtOffsets(suggestion) {
|
|
| 521 |
_isApplyingSuggestion = false;
|
| 522 |
}
|
| 523 |
// P2/User Request: Auto re-analyze after applying suggestion
|
| 524 |
-
//
|
| 525 |
-
setTimeout(() => {
|
| 526 |
}
|
| 527 |
|
| 528 |
function applyCorrection() {
|
|
@@ -607,7 +607,7 @@ function applyAlternativeCorrection(suggestion, correctionText) {
|
|
| 607 |
_isApplyingSuggestion = false;
|
| 608 |
}
|
| 609 |
// P2/User Request: Auto re-analyze after applying alternative correction
|
| 610 |
-
setTimeout(() => {
|
| 611 |
}
|
| 612 |
|
| 613 |
function dismissSuggestion(suggestion) {
|
|
@@ -688,7 +688,7 @@ function applyAllSuggestions() {
|
|
| 688 |
_isApplyingSuggestion = false;
|
| 689 |
}
|
| 690 |
// P2/User Request: Auto re-analyze after applying all suggestions
|
| 691 |
-
setTimeout(() => {
|
| 692 |
}
|
| 693 |
|
| 694 |
function clearEditor() {
|
|
|
|
| 521 |
_isApplyingSuggestion = false;
|
| 522 |
}
|
| 523 |
// P2/User Request: Auto re-analyze after applying suggestion
|
| 524 |
+
// Calls analyzeText() DIRECTLY (not delayed) for instant re-analysis.
|
| 525 |
+
setTimeout(() => { analyzeText(); }, 300);
|
| 526 |
}
|
| 527 |
|
| 528 |
function applyCorrection() {
|
|
|
|
| 607 |
_isApplyingSuggestion = false;
|
| 608 |
}
|
| 609 |
// P2/User Request: Auto re-analyze after applying alternative correction
|
| 610 |
+
setTimeout(() => { analyzeText(); }, 300);
|
| 611 |
}
|
| 612 |
|
| 613 |
function dismissSuggestion(suggestion) {
|
|
|
|
| 688 |
_isApplyingSuggestion = false;
|
| 689 |
}
|
| 690 |
// P2/User Request: Auto re-analyze after applying all suggestions
|
| 691 |
+
setTimeout(() => { analyzeText(); }, 300);
|
| 692 |
}
|
| 693 |
|
| 694 |
function clearEditor() {
|