microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
719 stars 242 forks source link

Wrong capitalization of object types on "Implement interface" #7699

Open NKarolak opened 3 months ago

NKarolak commented 3 months ago

1. Describe the bug Code action "Implement interfaces" uses a wrong capitalization of object types within parameters.

2. To Reproduce Steps to reproduce the behavior:

  1. Create the following interface
    interface MyInterface
    {
    procedure Test(TestEnum: Enum "AFS Write"; var SalesPost: Codeunit "Sales-Post")
    }
  2. Create the following empty codeunit:
    codeunit 50000 MyImpl implements MyInterface
    {
    }
  3. On the first codeunit line, run code action "Implement interface".

3. Expected behavior Implemented procedure:

    procedure Test(TestEnum: Enum System.Azure.Storage.Files."AFS Write"; var SalesPost: Codeunit Microsoft.Sales.Posting."Sales-Post")
    begin

    end;

4. Actual behavior

Implemented procedure:

    procedure Test(TestEnum: enum System.Azure.Storage.Files."AFS Write"; var SalesPost: codeunit Microsoft.Sales.Posting."Sales-Post")
    begin

    end;

5. Versions: