NAB AL Tools
This extensions is a tool that helps with AL development.
The workflow for working with these XLIFF tools are
NAB: Refresh XLF files from g.xlf
Iterates the g.xlf file and updates all language xlf files.
NAB: Find next untranslated text (Ctrl+Alt+U)
Finds the next occurance of the tags [NAB: NOT TRANSLATED] or [NAB: REVIEW] and selects the tag.
NAB: Find untranslated texts (* Please read Known Issues below)
Uses the Find in Files feature to search for the tags above.
NAB: Find translated texts of current line (* Please read Known Issues below)
Place the cursor on a AL code line that should be translated and execute this command to use the Find in Files feature to find all occurences of the translations.
NAB: Find code source of current line ("F12" in xlf files)
Place the cursor somewhere in a trans-unit node in the xlf file and execute this command to navigate to the source code for that translation.
NAB: Sort XLF files as g.xlf
Updates all language xlf files with the same sorting as the g.xlf file
NAB: Copy <source> to <target>
Copies the content of the <source> element to the <target> element. Use this when positioned on a target line in a xlf file.
NAB: Uninstall dependendent apps
Uninstalls dependant apps through PowerShell. Useful if you cannot install your app due to dependencies.
Only works for local installations, not Docker, not Saas Sandbox.
NAB: Sign app file
Sign the app file (matching your current app.json). You must first have the Code Signing Certificate installed in the Current User Personal Store (Cert:\CurrentUser\My if you're importing with PowerShell).
NAB: Deploy and Run TestTool without Debugger
Useful if you're using a separate app as a test app
When this command is executed, VSCode...
NAB: Deploy and Run TestTool with Debugger
The same feature as above, but with debugging
Assign text variable with CopyStr
Since CodeCop rule AA0139 complains on possible overflow, we need to assign text variables with a CopyStr statement
Inserts a stub Test Codeunit
Inserts a stub Test Function
Inserts a generic SendNotificationHandler function
Inserts a generic MessageHandler function
Inserts a generic ConfirmHandler function
Define variable of type Dictionary
Define variable of type List
This extension requires the Microsoft AL Language Extension to fully work.
This extension contributes the following settings:
The Find in Files API was a bit buggy before VSCode v1.34... I had to create a PR for VSCode for this to work properly and in VSCode v1.34 this was finally released, yey! So be sure to update VSCode to v1.34 or later.
Please submit issues on GitHub
You are always welcome to open an issue for enhancements and bugs. If you'd like to give it a swing yourself you can follow this little guide to get up and running: How To Contribute.