AL
AL copied to clipboard
Wrong tooltip in TableRelation when table name matches top-level namespace name
1. Describe the bug
The tooltip on <Table> in TableRelation <Table>.<Column> is wrongly namespace <Table> when a top-level namespace with name <Table> exists.
2. To Reproduce Steps to reproduce the behavior:
- Copy the code below into an AL file
- Hover over
Fooin the TableRelation
namespace foo;
table 50100 Foo
{
fields
{
field(1; Id; Integer)
{
}
}
}
table 50101 MyDetailTable
{
fields
{
field(1; Id; Integer)
{
}
field(2; Master2; Integer)
{
TableRelation = Foo.Id;
}
}
}
3. Expected behavior
Expected tooltip to refer to table Foo.
4. Actual behavior
The tooltip refers to namespace Foo:
5. Versions:
- AL Language: 14.0.1114061
- Visual Studio Code: 1.92.2
- Business Central: BC25
- List of Visual Studio Code extensions that you have installed: ms-dynamics-smb.al
Final Checklist
Please remember to do the following:
-
[x] Search the issue repository to ensure you are reporting a new issue
-
[x] Reproduce the issue after disabling all extensions except the AL Language extension
-
[x] Simplify your code around the issue to better isolate the problem
Internal work item: AB#551299