Building Prayer Status: An Islamic Companion Extension for VS Code

Developers often lose track of time during deep focus sessions. I built Prayer Time Reminder (published on VS Code Marketplace as riflo.prayer-time-reminder) to integrate real-time prayer countdowns, daily Quran verses, and dhikr tools directly into the editor.

VS Code Status Bar Simulation
[Status Bar] 🕌 Asr in 00:42:15 | 📿 Tasbih: 33 (Click +1)

Key Architecture & Features

Building a VS Code extension required leveraging VS Code's extension API efficiently without burning background CPU cycles:

  • Status Bar API: Displays a live countdown timer that updates once per second using non-blocking intervals.
  • Sidebar Dashboard: Webview panel presenting today's prayer schedule and status badges.
  • IP-Based Auto Location: Automatically detects your city on initial startup—no manual coordinates needed.
  • Daily Quran Ayah: Displays random daily Quran verses with translations upon editor startup.
  • Built-in Tasbih Counter: Interactive status bar click counter for quick dhikr while waiting for builds.
  • Visual Alerts: Dynamic color indicators that change as prayer time approaches (Yellow alert, Red on arrival).
Technical Insight: To prevent memory leaks, all status bar items, event listeners, and timers are registered to context.subscriptions so they dispose cleanly when VS Code closes.