feat: local word completion#2128
Conversation
Greptile SummaryThis PR adds a "local word completion" feature to the Acode editor, which suggests words found in the current file using CodeMirror's built-in
Confidence Score: 5/5Safe to merge — the change adds an opt-out toggle for word completion with no effect on existing code paths. The new extension follows the established CodeMirror compartment pattern exactly, the setting is correctly wired to the update listener, and all 33 locale files plus the type declaration are updated. No existing behaviour is altered; the feature can be disabled via the new setting. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User types in editor] --> B{liveAutoCompletion?}
B -- true --> C[autocompletion activateOnTyping=true]
B -- false --> D[autocompletion activateOnTyping=false]
C --> E{localWordCompletion enabled?}
D --> F[Manual trigger only]
F --> E
E -- true --> G[localWordCompletions Extension\nEditorState.languageData.of\ncompleteAnyWord]
E -- false --> H[localWordCompletionCompartment = empty]
G --> I[Suggestions from current file words]
H --> J[No word suggestions]
K[appSettings.on update:localWordCompletion] --> L[applyOptions localWordCompletion]
L --> M[localWordCompletionCompartment.reconfigure]
M --> E
Reviews (2): Last reviewed commit: "fix" | Re-trigger Greptile |
No description provided.