Own products & experimentsOwnerJun 2026

Guided Code Practice: a VS Code ghost-text tutor

TL;DR

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.

Period
Jun 2026
Technologies
2
Diagrams
1
Reading time
2 min

TypeScriptVS 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 / 🔒)
A. Guided Code Practice (VS Code extension) — main item
Diagram as text
sequenceDiagram
 participant U as Learner
 participant E as Editor
 participant G as GhostTextProvider
 participant S as PracticeSessionManager
 participant V as StepValidator
 participant W as Sidebar webview
 U->>W: Start course
 W->>S: load course (mock data) → active step
 E->>G: cursor change → provideInlineCompletionItems
 G->>S: expected remaining text for the active step
 G-->>E: ghost text
 U->>E: types / Tab
 E->>V: validate document vs expected
 V-->>S: step complete? → next step, progress
 S-->>W: update timeline + explanation

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.

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.