2023 Wave 2 – v23: New AL language extension settings and new properties in JSON Files

2023 Wave 2 – v23: Nuevas configuraciones en la extensión de Lenguaje AL y nuevas propiedades en los archivos JSON

A la nueva versión de Business Central (23.0), Wave 2 del 2023 le acompaña una nueva versión del lenguaje AL (12.0). Esta nueva versión trae nuevas configuraciones entre ellas las siguientes:

Podemos acceder a la opción de preferencias desde Visual Studio Code, podemos presionar F1 o la opción en el menú de Ver / Paleta de Comandos.

Y seleccionar la opción de «Preferencia: Abrir Configuración de Usuario»

Y nos dirigimos a la opción de «Extensions / AL language extension configuration»

al.algoSuggestedFolder

al.inlayhints.parameterNames.enabled y al.inlayhints.functionReturnTypes.enabled

Adicionalmente a las configuraciones mencionadas, y de manera obligatoria debemos configurar otras opciones en el editor de Visual Studio Code para habilitar la funcionalidad.

Por ejemplo, podemos configurar para que esta información adicional esté oculta y aparezca cuando presionamos el atajo de teclado CTRL + ALT.

Podemos ver a continuación de color plomo y subrayado la información adicional de la función o método que estemos trabajando, a nivel de parámetro y el tipo de datos de retorno.

al.compilerOptions – Propiedad «outFolder”

APP.JSON: Propiedades Source y Build

En la propiedad Source tenemos «RepositoryUrl»: que es la dirección del repositorio que contiene el código fuente del proyecto. «Commit»: el ID de código fuente que permite volver al commit que inició la construcción de la extensión.

En la propiedad Build tenemos «By»: importante para identificar el agente, como por ejemplo AL-Go para GitHub; y «Url»: que puede utilizarse para la URL a la invocación del sistema de compilación.

LAUNCH.JSON: Configuración snapshotInitialize: Propiedad profileSamplingInterval

Las mismas opciones internas de muestreo están disponibles en la nueva opción de Configuración del Generador de perfiles de rendimiento en el cliente. El valor predeterminado es 100 ms.

Espero que te haya servido de ayuda esta información.


2023 Wave 2 – v23: New AL language extension settings and new properties in JSON Files

The new version of Business Central (23.0), 2023 Wave 2 is accompanied by a new version of the AL language (12.0). This new version brings new configurations including the following ones:

We can access the preferences option from Visual Studio Code, we can press F1 or the option in the View / Command Palette menu.

And select the option «Preference: Open User Settings».

And we go to the option «Extensions / AL language extension configuration»

al.algoSuggestedFolder

al.inlayhints.parameterNames.enabled and al.inlayhints.functionReturnTypes.enabled

In addition to the aforementioned configurations, we must configure other options in the Visual Studio Code editor to enable the functionality.

For example, we can set this additional information to be hidden and appear when we press the keyboard shortcut CTRL + ALT.

We can see below in gray color and underlined the additional information of the function or method we are working with, at the parameter level and the return data type.

al.compilerOptions – «outFolder” property

APP.JSON: Source and Build properties

In the Source property we have «RepositoryUrl»: which is the address of the repository that contains the source code of the project. «Commit»: the source code ID that allows to go back to the commit that triggered building the extension build.

In the Build property we have «By»: important to identify the agent, such as AL-Go for GitHub; and «Url»: which can be used for the URL to the build system invocation where the build can be found.

LAUNCH.JSON: snapshotInitialize configuration: profileSamplingInterval property

The same internal sampling options are available in the new Performance Profiler Configuration option in the web client. The default value is 100 ms.

I hope this information has been helpful.


Más información / More Information

Deja un comentario