Any TDF for VS Code
简体中文
Hover and completion support for STDF, RTDF, and VTDF components.
Features
- Detects the nearest
package.json and enables the matching library only when it declares stdf, rtdf, or vtdf.
- Shows bundled component API documentation, installed and latest package versions, demos, guides, and source links on hover.
- Completes component properties, events, children, snippets, and Vue slots with framework-specific syntax.
- Supports Chinese and English API documentation through the
AnyTDF.English setting.
- Covers public child components such as
CellGroup, CheckboxItem, Grid, RadioItem, Tab, TabContent, and Avatars where exported.
Language support
Language services remain external to this project. The extension manifest declares the official dependencies below so VS Code can install and manage them:
RTDF uses the JavaScript and TypeScript language support built into VS Code.
Activation
The extension is active only when the current Svelte, JSX, TSX, or Vue file belongs to a package that depends on the corresponding TDF library. Monorepos and nested packages are supported by searching upward for the nearest matching package.json.
Configuration
Set AnyTDF.English to true to show the bundled API documentation in English. Simplified Chinese is used by default.
The legacy STDF.English setting remains readable for users upgrading from STDF for VS Code. AnyTDF.English takes precedence when both settings are explicitly configured.
Upgrade from STDF for VS Code
Any TDF for VS Code continues to use the Marketplace identifier STDF.stdf-vscode-extension. Existing users receive the unified STDF, RTDF, and VTDF support as a normal extension update.
Privacy
The extension does not collect telemetry. It reads the nearest workspace package.json to detect the active TDF package and requests the public npm Registry metadata endpoint to display the latest package version.
License
Any TDF for VS Code is released under the MIT License.