This is a Trae plugin for previewing AI Lesson content.
Features
Preview AI Lesson content in markdown files
Open material gallery for course development
Initialize project with skills
Course navigation and structure management
Development
Run npm install to install dependencies.
Press F5 to start debugging in a new Extension Development Host window.
Open a markdown file and click the "语文 AI 课预览" button to test the preview functionality.
Build
npm run compile # Compile TypeScript
npm run build # Package into VSIX file
Publishing
This plugin supports publishing to both VS Code Marketplace and OpenVSX.
Prerequisites
VS Code Marketplace:
Install vsce: npm install -g vsce
Login: vsce login fcx
OpenVSX:
Install ovsx: npm install -g ovsx
Login: ovsx login fcx
Publish Commands
# Publish to VS Code Marketplace only
npm run publish:vscode
# Publish to OpenVSX only
npm run publish:openvsx
# Publish to both markets
npm run publish:all
Release Workflow
Update version in package.json
Run npm run publish:all to publish to both markets
Verify the plugin is available on both platforms
Configuration
The plugin supports the following VS Code settings: