# Guided Code Practice: a VS Code ghost-text tutor

> Guided Code Practice is a ghost-text tutor for VS Code: multi-line inline completions guide you through typing code, backed by algorithm and architecture design documents.

URL: https://thuyavan.netlify.app/projects/guided-code-practice
Updated: 2026-10-12

- Period: 2026-06
- Technologies: TypeScript, VS Code & Chrome extensions

## A. Guided Code Practice (VS Code extension) — main item

Field
Value

Path
internal path (+ internal path, 12 design docs)

Idea (doc 0)
Learn by typing real code step by step inside the editor: the extension shows the next expected code as grey ghost text; the learner types it or presses Tab; each step explains why; a sidebar timeline shows completed / active / locked steps

Size
2,102 TS

Architecture:

src/
├─ extension.ts (244) # activation, commands: startCourse, login
├─ core/
│ ├─ engine/StepValidator.ts (130) # compares typed code to the expected step (normalisation, progress)
│ ├─ services/PracticeSessionManager.ts (255), CourseService, ProgressService, AuthService
│ ├─ models/ · mockData/courses.ts # course → steps (code, explanation)
└─ vscode/
 ├─ providers/GhostTextProvider.ts # vscode.InlineCompletionItemProvider → ghost text at the cursor
 ├─ providers/CourseExplorerProvider.ts # TreeDataProvider "Code Practice"
 └─ webviews/SidebarProvider.ts (537) # webview: step cards, timeline roadmap (✓ / pulsing / 🔒)

Docs: features and behaviours, terminology, algorithm design (A2), architecture and models (A3), use cases (A4), implementation plans 1–4 / A5, bug root causes (A1). Commits: first commit → “next line able to work” (multi-line ghost text) → error fixes → feature-details doc → code.
Skills: VS Code Extension API InlineCompletionItemProvider TreeDataProvider Webviews TypeScript EdTech Text diff/validation.

## B. VS Code "fade-in / typing" extension experiments (version family, 2022–2024)

Version
Path
Description
LOC
Author

v1
internal path
“Fade In Out Code”: animate code fading in / out in the editor
106
owner

v2
…/v2
notes only (file.txt, sds)
—
—

v3
…/v3/js-typing-game
JS typing game
162
dejwid (2022-09-30): a third-party tutorial clone

v4
…/v4/starttypinggame
“My Typing Game Extension”
247
owner

v5
…/v5/typing-code
“typing code” v1: type-along code
236
owner

Folder mtime 2024-03-23. These are the early seeds of Guided Code Practice (type-along code inside VS Code), revisited in 2026 with a proper engine. Classification C (learning / R&D).

## C. xPath Finder (Chrome) — third-party

extension/xpath-finder, extension/xpath-finder-2 and extension/ihnknokegkbpmofmafnkoadfjkhlogph/1.0.3_0 are byte-identical copies (MV3, “Click on any element to get the xPath”, 478 JS lines). The ID-named folder is a Chrome Web Store install path, so this is an installed third-party extension copied for study (useful for the owner’s Playwright form-automation work, P11). Excluded as 3RD-PARTY.
