mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
completion caching for efficiency
This commit is contained in:
@@ -289,7 +289,7 @@ public class TextArea extends JEditTextArea {
|
||||
word = word.trim();
|
||||
if (word.endsWith("."))
|
||||
word = word.substring(0, word.length() - 1);
|
||||
errorCheckerService.astGenerator.updatePredictions(word, line
|
||||
errorCheckerService.astGenerator.preparePredictions(word, line
|
||||
+ errorCheckerService.mainClassOffset,0);
|
||||
return word;
|
||||
}
|
||||
@@ -367,7 +367,7 @@ public class TextArea extends JEditTextArea {
|
||||
// if (word.endsWith("."))
|
||||
// word = word.substring(0, word.length() - 1);
|
||||
int lineStartNonWSOffset = 0;
|
||||
errorCheckerService.astGenerator.updatePredictions(word, line
|
||||
errorCheckerService.astGenerator.preparePredictions(word, line
|
||||
+ errorCheckerService.mainClassOffset,lineStartNonWSOffset);
|
||||
//showSuggestionLater();
|
||||
return word;
|
||||
|
||||
Reference in New Issue
Block a user