Teloce VS Code Extension
The Teloce VS Code extension provides language support and developer tooling for Teloce templates ( Features
InstallationFrom the VS Code Marketplace
From a VSIX File
UsageCreating a
|
| Command | Description | Keybinding |
|---|---|---|
teloce.format |
Format a Teloce template | Shift+Alt+F |
teloce.validate |
Validate the current template | — |
teloce.openDebugger |
Open the Teloce debugger | — |
Settings
| Setting | Default | Description |
|---|---|---|
teloce.format.indentSize |
2 |
Number of spaces used for indentation |
teloce.format.useTabs |
false |
Use tabs instead of spaces |
teloce.validate.enable |
true |
Enable template validation |
teloce.completion.enable |
true |
Enable autocomplete |
teloce.debugger.host |
localhost |
Teloce debugger host |
teloce.debugger.port |
9000 |
Teloce debugger port |
Contributing
Development
Clone the repository and install its dependencies:
# Clone the repository
git clone https://github.com/aldane-dev-create/teloce.git
# Enter the repository
cd teloce
# Install dependencies
pnpm install
# Build the project
pnpm build
# Open the VS Code extension package
code packages/vscode-extension
Press F5 in VS Code to launch the extension in an Extension Development Host.
Publishing
Build the Language Service
cd packages/language-service
pnpm build
pnpm publish --access public
Package the VS Code Extension
cd packages/vscode-extension
pnpm build
pnpm vsce package
This generates a .vsix package that can be installed locally or uploaded to the VS Code Marketplace.
Publish to the VS Code Marketplace
First, obtain a Personal Access Token from Azure DevOps.
Then authenticate with vsce:
vsce login teloce
Publish the extension:
pnpm vsce publish
Local VSIX Installation
After creating the VSIX package, install it locally with:
code --install-extension teloce-vscode.vsix
You can also install it through VS Code:
- Open the Extensions panel.
- Click the ... menu.
- Select Install from VSIX....
- Select the generated
.vsixfile.
License
MIT