AL icon indicating copy to clipboard operation
AL copied to clipboard

tfieldboolean snippet missing?

Open ajansari opened this issue 8 years ago • 4 comments

While watching the "How do I add a field in an extension" video (Microsoft Dynamics 365's YouTube channel), I notice that Daniel uses the "tfieldboolean" snippet.

I have AL Language build 0.15.18771 installed in Visual Studio Code, and while I have some other tfield___ snippets, I don't have the one for Boolean. Has it been removed, or am I doing something wrong?

Thanks! AJ

ajansari avatar Jun 05 '18 06:06 ajansari

Hi @ajansari, we have refactored our snippets some time ago in order to fit with VS Code guidelines. When using the snippet tfield you can now choose the type of field you want as shown below:

boolsnippet

qutreson avatar Jun 05 '18 08:06 qutreson

Ah, interesting. Thank you for that information!

Does that mean we will soon be losing the some of the other tfield___ snippets that are still visible (like tfieldcode, tfieldoption, tfieldtext, etc.)? It seems inconsistent to have some but lose the others.

ajansari avatar Jun 05 '18 16:06 ajansari

We are now using the tfieldsnippet for all the field types that does not require additional information (Integer, Blob, Boolean). The other ones like Text or Code are left as individual snippet because you have to specify also the length. Same thing for options where you need to specify the option members.

qutreson avatar Jun 05 '18 17:06 qutreson

That makes sense. Thank you for explaining.

ajansari avatar Jun 05 '18 22:06 ajansari