|
|
3 сар өмнө | |
|---|---|---|
| .. | ||
| .storybook | 0d4a18fd0f Add colorized SVG-based autocomplete decorations (#2417) | 5 сар өмнө |
| generated-theme-styles | 5ac54401fd refactor(e2e, storybook): improve reliability of theme variable extraction by aligning with VS Code (#1801) | 5 сар өмнө |
| scripts | 5ac54401fd refactor(e2e, storybook): improve reliability of theme variable extraction by aligning with VS Code (#1801) | 5 сар өмнө |
| src | b146bcde23 remove old multiplace diff svg style autocomplete | 3 сар өмнө |
| stories | 98c4d89f41 feat(marketplace): add descriptions to the MCP and modes marketplace headers (#3382) | 3 сар өмнө |
| .gitignore | 6f5c825f60 Add Playwright Screenshots to Chromatic (#1234) | 7 сар өмнө |
| README.md | 3529a8eb53 feat(storybook): Add VS Code theme generation and theme switcher (#755) | 8 сар өмнө |
| package.json | 5609a95c6a refactor(storybook): Centralize QueryClient export for Storybook | 5 сар өмнө |
| tsconfig.json | e02c2d243f Introduce Storybook for easier webview component testing (#741) | 8 сар өмнө |
Component library and design system documentation for the VS Code extension.
# Install dependencies
pnpm install
# Run Storybook
pnpm storybook
Visit http://localhost:6006 to view the component library.
This Storybook uses automatically generated VS Code themes to ensure our components match the official VS Code appearance exactly. The themes are generated from Microsoft's official VS Code theme files and converted to CSS variables.
Use the theme switcher in the Storybook toolbar to toggle between themes.
The theme CSS files are checked into the repository and rarely need updating. To regenerate themes (only needed when VS Code releases new theme updates):
pnpm generate-theme-styles
This script:
dark_modern includes dark_plus)editor.background → --vscode-editor-background).storybook/themes/pnpm storybook - Start development serverpnpm build - Build static Storybookpnpm generate-theme-styles - Regenerate VS Code theme CSS filespnpm test - Run component tests