v0.7.2 — Procedure completion regression fixes
Patch release fixing two regressions introduced by v0.7.1.
Fixed
- Double
@on procedure completion accept. Typingcall @a, then accepting@arcfrom the list, producedcall @@arc. Root cause: after the v0.7.1wordPatternchange VSCode's word-at-cursor became justa, whileinsertTextstill carried the full@arc— VSCode replaced onlya, leaving the typed@in place. - Empty suggestion list after
call @. With no letters typed, the completion popup showed "No suggestions". Caused by an intermediate fix that included@insideTextEdit.range: VSCode derives its filter-query from the range content, so the query became@whilefilterTextwas stripped (arc) — mismatch. - Server NRE on bare
call @. The symbol-table builder dereferencedProcedureName()without a null-check when ANTLR's error-recovery produced an incomplete procedure-call node. The resulting NullReferenceException propagated out of the document-update path and made the completion response come back empty.
Fix strategy
Every procedure completion item now ships an explicit TextEdit whose range covers only the letters after @ (the @ itself stays in the buffer). NewText is set to the name without @ when @ is already in the buffer, or with @ for the Ctrl+Space case on a bare call line. This gives call @arc in every scenario.
VSIX attached — install via code --install-extension anzory.vscode-gppl-ide-0.7.2.vsix or drag-drop into the Extensions view.
Note: This release is superseded by v0.7.3, which adds snippet completion for built-in functions on top of these fixes. Recommended to go straight to the latest.