anzwdev / al-code-outline

AL Code Outline for Visual Studio Code
MIT License
51 stars 13 forks source link

Convert Object Ids to Names does not convert CodeunitID in AddAction of ErrorInfo #519

Closed pri-kise closed 8 months ago

pri-kise commented 9 months ago

e.g. in the following code the 50000 should be replaced with Codeunit::"My Codeunit".

local procedure ThrowError()
var
    MyErrorInfo: ErrorInfo;
begin
    MyErrorInfo:= ErrorInfo.Create('Test Error');
    MyErrorInfo.AddAction('Test Action', 50000, 'ShowRecord');
    end;
    Error(MyErrorInfo);
end;
anzwdev commented 8 months ago

Thank you for reporting the problem. I've fixed it and released a new version.