The XETO Extension for VSCode provides language support and code editing features for the XETO language using the Language Server Protcol (LSP). It offers features as:
Code completion proposals: Suggestions regarding properties on existing protos
Hover information: Show available docs for symbols
Show Definition of a Symbol: Peek the definition of a symbol defined either in the current workspace or in an external library
Go to definition of a Symbol: Navigation to symbols, both in the current workspace and in the external libraries
Formatting: Automatically format code according to language-specific rules.
Rename symbol: Rename a symbol accross the entire workspace
Document symbols: Quickly search for symbols defined in the current file
Workspace symbols: Quickly search for symbols defined in the current workspace
Document outline: Provides a fast way to see all the symbols defined in the current file and provides navigation the their definition
Support for external libraries:
Define folders or files that are external to the workspace and use the symbols define there
Hover, Show Definition and Go to Definition work with these
Support for sys libraries:
Load system libraries by specifiying a Git commit sha
this works similar to external libraries, but loading them via HTTP instead of local file system
Support for data instances
Configuration
The XETO Extension supports configurations for
external libraries
sys libraries
To modify the extension's settings access the settings panel (Settings -> Settings or use the shortcut Ctrl+Shift+P or ⌘+Shift+P on Mac and search for Settings). Then search for xeto and update them as needed.
Note: some settings cannot be changed via the UI so you may need to edit the settings.json file by hand.
Usage
Open a xeto file that has the .xeto extension
The XETO Extension will automatically active and provide language-provided features
Use the provided Visual Studio Code keyboard actions and/or commands
Note: Some features (like go to definition) may take a few seconds to start, as we are reading sys libraries that are external to the host machine
Installation
Extension Marketplace
Launch Visual Studio Code
Open the Extensions tab using Ctrl+Shift+X or ⌘+Shift+X