Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong tooltip in TableRelation when table name matches top-level namespace name #7846

Open
3 tasks done
christian-clausen opened this issue Sep 5, 2024 · 0 comments
Open
3 tasks done

Comments

@christian-clausen
Copy link

christian-clausen commented Sep 5, 2024

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:

  1. Copy the code below into an AL file
  2. Hover over Foo in 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:

image

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:

  • Search the issue repository to ensure you are reporting a new issue

  • Reproduce the issue after disabling all extensions except the AL Language extension

  • Simplify your code around the issue to better isolate the problem

Internal work item: AB#551299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants