Alternative UX Extensions and Their Trade-offs for Code Completion in Pharo
Mehdi Elkolei, Omar Abedelkader, Stéphane Ducasse
Abstract
Complishon is Pharo's context-aware code completion engine, built on AST analysis, lazy candidate generation, and filter-based candidate selection. Its existing design already provides strong semantic completion, but several practical limits remain. Strict prefix matching is sensitive to small typing errors, framework prefixes often force redundant input, large completion menus are difficult to scan, and prefix-only matching does not support common camel-case abbreviations. This paper presents four extensions that address these limits: typo tolerance, implicit prefix expansion, grouped completion entries, and camel-case matching. For each extension, we describe the implementation, discuss alternative designs, and explain the trade-offs involved. The main contribution of the paper is to show that these improvements can be integrated into Complishon while preserving its modular architecture and predictable behavior.
Create a lesson
Related papers
Think Before You Code: Dual Reasoning for the NLSafety-Utility Trade-Off in LLM Code Generation
Shared title terminology · Honghao Tan, Haibo Wang, Shin Hwei Tan
Evaluating Package-Level Scoping Strategies for Repository-Level Code Completion in Pharo
Shared title terminology · Omar Abedelkader, Stéphane Ducasse, Guillermo Polito et al.
Better Call Grep: Evaluating and Improving Grep-Like Lexical Retrieval for Repository-Level Code Completion
Shared title terminology · Baoyi Wang, Xingliang Wang, Guochang Li et al.
Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses
Shared title terminology · Saurabh Chopra
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt