VS Code support for .weiv single-file components.
- Language registration for
.weivfiles - Embedded language support:
- HTML in
<template> - TypeScript in
<script lang="ts"> - CSS in
<style>
- HTML in
- Weiv-specific highlighting:
bind:propdirective bindingson:eventevent handlersif/else/forcontrol flow attributesslotdirectives{{ expression }}template interpolation- PascalCase component tags (distinct from HTML tags)
- Bracket matching, auto-closing, and folding for section blocks
- Go to definition for imported components and script symbols used from templates
.weivfile icon support
If the extension is published in the VS Code Marketplace, install Weiv there.
npm install
npm run buildnpm run package
code --install-extension weiv-vscode-0.1.0.vsixOpen this repo in VS Code and press F5 to launch an Extension Development
Host.
