microsoft / microsoft/AL

Improve Intellisense for parameters of type Option

Open
#3,819 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

As the title describes: the ToolTip on TransactionModel is misleading.

Creating a new test function and wanting to set the TransactionModel the ToolTip shown in VSCode tells me:

TransactionModel(TransactionModel: TransactionModel)

Filling in, for example, AutoRollback after the colon will show an error:

TransactionModel(TransactionModel: AutoRollback )

So I tried the scope operator ::

TransactionModel(TransactionModel::AutoRollback )

And this is fine. SO the Tooltip has to be changed to

TransactionModel(TransactionModel::TransactionModel)

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

Reproduce the issue in Visual Studio Code by checking the IntelliSense tooltip for TransactionModel and an Option parameter such as AutoRollback. Update the displayed signature so the type qualification uses ::, then confirm the tooltip shows TransactionModel(TransactionModel::TransactionModel) without an error when the option is selected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.