anzwdev / al-code-outline

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

Missing Parantheses for GuiAllowed #317

Closed pri-kise closed 2 years ago

pri-kise commented 2 years ago

Hi, I don't know what info you are using to add missing parantheses, but it seems that the keyword/funtion GuiAllowed is missing. The Intellisense of the AL Language does not add parantheses, but if I understand it correct then there should be brackets..?

dannoe commented 2 years ago

see https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-guiallowed-method

grafik

anzwdev commented 2 years ago

Hi

I am using information returned by the al compiler to apply the same logic as CodeCop when it returns A0008 warning. I compile whole al project first and then I am using semantic model built by the compiler to get information about symbol types. If symbol is a function call and parentheses are missing, I am adding them. They are not added to the GuiAllowed, because it is a property.

dannoe commented 2 years ago

Just for confirmation: https://github.com/microsoft/AL/issues/6908#issuecomment-1028644117