microsoft / microsoft/AL

Intellisense autocomplete suggestion for `case`/`end;` doesn't work and is missing semicolon

Open
#6,437 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug intellisense
Dominant language
PowerShell
Stars
881
Forks
285
Avg merge
3d 36m
Merged PRs (30d)
1

Description

The bug with case/end; not being known as related by VS Code was fixed, here:
https://github.com/microsoft/AL/issues/5815
...but... there seems to be a bug in the fix!

For begin/end;, on typing begin, we get an Intellisense suggestion...
image
...that if accepted with the Enter key (twice) creates the delimiters correctly and puts the cursor within them:
image

It seems this was attempted for case/end; too, but it doesn't work: we get the same kind of suggestion:
image
...but as you can see, (a) it lacks the semicolon after end, and (b) it doesn't seem to actually work when accepted, just doing nothing:
image
This is after pressing the Enter key just once, unlike above; the end disappears and we are just left with the originally typed case

AL extension version 6.1.397164

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AL language extension's autocomplete handling for the case/end; suggestion, comparing it with the working begin/end; behavior described in the issue. Verify that accepting the suggestion inserts end;, preserves the semicolon, and places the cursor inside the delimiters.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.