This Visual Studio Code extension allows you to view Major League Baseball (MLB) game scores for today directly within your development environment.
Features
Sidebar Integration: Displays scores directly in VS Code's Explorer sidebar
Daily MLB Scores: View all MLB games scheduled for today
Custom Date Selection: Optionally specify a custom game date in settings
Live Data: Fetches real-time data from the official MLB Stats API
Clean Display: Shows scores in an easy-to-read format (e.g., "NYY 10 - 5 BOS")
Game Status: Displays current status of each game (Final, In Progress, Scheduled, etc.)
One-Click Refresh: Refresh button in the tree view title to get the latest scores
Native Integration: Seamlessly integrates with VS Code's native tree view interface
Installation
Install the extension from the VS Code marketplace
The extension will be automatically activated
Usage
After installation, the "MLB Scores" section will appear in your Explorer sidebar
Scores will load automatically when the extension activates
Click the refresh button (🔄) in the tree view title to update scores
Each game shows: "AWAY_TEAM AWAY_SCORE - HOME_SCORE HOME_TEAM" with status
Viewing Games for a Specific Date
You can configure the extension to show games for a specific date:
Open VS Code Settings (File > Preferences > Settings)
Search for "MLB Score Board"
Set the "Game Date" field to a date in MM/DD/YYYY format (e.g., 12/25/2024)
Leave the field empty to show today's games (default behavior)
The scores will automatically refresh when you change the date setting. When a custom date is configured, the date will be displayed in the view title (e.g., "MLB Scores - 12/25/2024").