trlc-vscode is a visual studio code extension that provides editing
features like syntax highlighting, auto completion and error checking
for TRLC files. Get more information about
TRLC.
- Install Python: 3.8 <= Python <= 3.12.
- Download the
*.vsixfile under theAssetstab of the latest Release of the extension. - Press
F1in VSCode, typeExtensions: Install from VSIX...and install the extension. - If it is not working out of the box, go to VSCode Settings, search for
python.defaultInterpreterPathand make sure it leads to your installed python executable.
On first use, the extension automatically installs all required Python
dependencies (pygls, trlc, and lsprotocol) into an
isolated python-deps/ folder inside the extension directory — no
manual pip install is needed.
Reinstalling the extension? Press F1 and run: TRLC: Reset Setup
once so that dependencies are re-installed cleanly.
The trlc_lsp server is a standalone Python package that works with any
LSP-capable editor.
A ready-made lsp4ij template is bundled in lsp4ij-template/ and is also attached to every GitHub Release as lsp4ij-template.zip. Full setup and configuration instructions are in lsp4ij-template/README.md.
Quick start:
- Install the lsp4ij plugin in your JetBrains IDE.
- Open Settings → Languages & Frameworks → Language Servers.
- Click [+] → New Language Server → Import from custom template... and
select the
lsp4ij-template/folder (or the downloadedlsp4ij-template.zip). - Confirm — on first file open lsp4ij automatically downloads and installs
the
trlc_lspwheel from GitHub Releases, with a localtrlc_lsp*.whlin your home directory as a fallback.
Install the server as a pip package and point your editor's LSP client at it. See trlc_lsp/README.md for details.
This extension offers partial and full parsing of TRLC files.
In partial mode, only a subset of files within the current workspace or
folder is parsed — specifically, the ones you have opened in your editor. On
the other hand, in full mode, the entire workspace or folder is parsed,
resulting in a longer processing time.
-
Open the Settings either through the gear icon or through the menu:
- On Windows/Linux, go to
File > Preferences > Settings. - On macOS, go to
Code > Preferences > Settings.
- On Windows/Linux, go to
-
Search for
trlcusing the search bar at the top. -
Modify the setting
Trlc Server: Parsingand enter either full or partial -
Close the Settings, there is no need for saving.
-
Press any key on the keyboard in any TRLC file and the updated settings will take effect.
Note: The last step is necessary as Visual Studio Code applies the setting only when a change is made in a file.
The TRLC VSCode Extension is licensed under the GPL-3.0 and the main copyright holder is the Bayerische Motoren Werke Aktiengesellschaft (BMW AG).
Parts of the extension are derived from the samples provided by pygls (licensed under the Apache 2.0 license) and the Microsoft Corporation (also licensed under the Apache 2.0 license).