Vector Simulation and Test Environment for Visual Studio CodeThis extension supports you in creating and using environments for CANoe Server Editions and Vector Test Unit Runner in Visual Studio Code.
It enables you to use symbols from the Vector toolset environment in your CAPL, Python and C# source files. Furthermore it provides editing support for the corresponding configuration files PrerequisitesThe Vector Simulation and Test Environment extension requires a Vector toolset to be installed. The Vector toolset comes with any CANoe or CANoe Server Edition. It is also part of the freely available Vector Test Unit Runner. At least version 16 SP3 of the Vector toolset is required. The currently selected toolset is shown in the status bar.
By default, the latest installed version is used.
To select a specific version, use the command The YAML extension is required for editing For editing application models and simulation nodes, please install the respective programming language extensions CAPL, Python, and C#. UsageThe Vector Simulation and Test Environment extension discovers all environments in the current workspace by their description files Editing application models and simulation nodesIf your environment contains application models or simulation nodes written in CAPL, Python, or C#, the extension will automatically generate type libraries for those languages. They allow you to use symbols from the environment like e.g., bus signals and distributed objects. The type libraries will automatically be loaded if you have the corresponding language extensions installed (see Prerequisites). Editing environment description filesThe extension provides editing support for the configuration files Building the environmentThe extension builds the environment automatically in the background. If you notice that the environment is outdated it is also possible to build the environment manually via the provided build task. You can start it via the commands
Upgrading environment description filesThis extension can also help you in keeping your environment description files up-to-date. Therefore it provides a feature to automatically upgrade your environment description files to the latest version supported by your Vector toolset. If an upgrade is possible you will see an information diagnostic at the FAQ
Visual Studio Code does not activate the extension when the file is created after startup. Hence, you must restart Visual Studio Code or execute the command
In some rare cases it may be necessary to run the command
Unfortunately, the Pylint extension does not yet respect the Python environment defined via the |