Skip to content

v0.7.2 — Procedure completion regression fixes

Choose a tag to compare

@anzory anzory released this 15 Apr 20:29
· 27 commits to master since this release

Patch release fixing two regressions introduced by v0.7.1.

Fixed

  • Double @ on procedure completion accept. Typing call @a, then accepting @arc from the list, produced call @@arc. Root cause: after the v0.7.1 wordPattern change VSCode's word-at-cursor became just a, while insertText still carried the full @arc — VSCode replaced only a, 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 @ inside TextEdit.range: VSCode derives its filter-query from the range content, so the query became @ while filterText was stripped (arc) — mismatch.
  • Server NRE on bare call @. The symbol-table builder dereferenced ProcedureName() 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.