Skip to content

Commit 67e932f

Browse files
committed
Update instructions to mention React + @legendapp/state
1 parent ca4b817 commit 67e932f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
This repository contains a VS Code extension that provides two webview-based tools for competitive programming: **Judge** and **Stress**.
44

55
- Extension backend code lives under `src/extension/**` and uses the VS Code API. `JudgeViewProvider` and `StressViewProvider` extend `BaseViewProvider`, which handles webview setup, CSP nonce generation, workspaceState storage, and message dispatch.
6-
- Webview frontend code lives under `src/webview/**` and is built with Preact + `@legendapp/state` for reactive state management. It talks to the extension only through typed messages defined in `src/shared/*-messages.ts`.
6+
- Webview frontend code lives under `src/webview/**` and is built with React + `@legendapp/state` for reactive state management. It talks to the extension only through typed messages defined in `src/shared/*-messages.ts`.
77
- Shared enums, message contracts, and types live under `src/shared/**` and define the protocol between extension and webviews (including the `Status` lifecycle and testcase structures).
88

99
Build and tooling:
1010

1111
- Use `bun install` to install dependencies.
1212
- Use `bun run watch` during development and `bun run prod` for production builds. The build is two-stage: Tailwind CLI compiles `src/styles/global.css` to `dist/styles.css`, then Rspack bundles the extension and webviews into `dist/`.
13-
- Run `bun run lint` and `bun run format` to apply ESLint (TypeScript + Preact) and Prettier rules.
13+
- Run `bun run lint` and `bun run format` to apply ESLint (TypeScript + React) and Prettier rules.
1414

1515
Design and implementation guidelines:
1616

.github/instructions/build-and-config.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When working on the build, config, or tooling files matched by this pattern:
1111
- The build is two-stage:
1212
- `build:css`: Tailwind CLI reads from `src/styles/global.css` and writes `dist/styles.css`.
1313
- `build:js`: Rspack bundles the extension backend and webview frontends into `dist/`.
14-
- The Rspack configuration (`rspack.config.ts`) exports two configs: one targeting Node.js/CommonJS for the extension, and one targeting the web/ES modules for the webviews (TypeScript/TSX with Preact). Keep this separation intact when modifying the config.
14+
- The Rspack configuration (`rspack.config.ts`) exports two configs: one targeting Node.js/CommonJS for the extension, and one targeting the web/ES modules for the webviews (TypeScript/TSX with React). Keep this separation intact when modifying the config.
1515
- Type-checking is handled by ForkTsCheckerWebpackPlugin, using `tsconfig.node.json` for the extension and `tsconfig.app.json` for the webviews. Keep these project files aligned with the respective code trees.
16-
- For quality gates, use `bun run lint` (ESLint with TypeScript + Preact rules) and `bun run format` (Prettier). Avoid adding overlapping or conflicting linters/formatters.
16+
- For quality gates, use `bun run lint` (ESLint with TypeScript + React rules) and `bun run format` (Prettier). Avoid adding overlapping or conflicting linters/formatters.
1717
- Prefer minimal, focused config changes. Avoid introducing large new toolchains or build systems; extend the existing Rspack + Tailwind + Bun setup instead.

.github/instructions/webview-frontend.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
applyTo: "src/webview/**/*.ts,src/webview/**/*.tsx"
33
---
44

5-
The `src/webview/**` tree contains the Preact-based frontend code for the Judge and Stress webviews. These run in an isolated browser-like environment, not in the VS Code extension host.
5+
The `src/webview/**` tree contains the React-based frontend code for the Judge and Stress webviews. These run in an isolated browser-like environment, not in the VS Code extension host.
66

77
When changing files under `src/webview/**`:
88

0 commit comments

Comments
 (0)