Offline Usage
ThinkCode provides robust offline capabilities, allowing you to continue your development work even when you don't have internet connectivity. This guide explains how to configure, use, and troubleshoot ThinkCode's offline features.
Offline Capabilities Overview
ThinkCode supports the following functionality in offline mode:
Feature | Offline Support | Notes |
---|---|---|
Code Editing | ✅ Full | All editing capabilities available |
Syntax Highlighting | ✅ Full | Requires language extensions to be pre-installed |
Code Navigation | ✅ Full | All navigation features work offline |
Search & Replace | ✅ Full | All search capabilities work locally |
Git Operations | ⚠️ Limited | Local operations only (commit, branch, etc.) |
Extensions | ⚠️ Limited | Pre-installed extensions only |
AI Features | ⚠️ Limited | Requires local AI models |
Debugging | ⚠️ Limited | Language-dependent, some debuggers need online resources |
Package Management | ❌ Unavailable | Requires internet for package downloads |
Preparing for Offline Use
Enabling Offline Mode
Enable offline mode in settings:
Alternatively, toggle offline mode via:
- Command Palette (
Ctrl+Shift+P
/Cmd+Shift+P
) - Type "ThinkCode: Toggle Offline Mode"
Downloading Required Resources
Before going offline, ensure you've downloaded necessary resources:
Extensions
Pre-install required extensions:
- Open Extensions view (
Ctrl+Shift+X
/Cmd+Shift+X
) - Search and install all extensions you'll need offline
- Ensure they're fully activated at least once while online
Local AI Models
For AI feature support offline:
Download AI models:
- Command Palette
- Type "ThinkCode: Download AI Models for Offline Use"
- Select which models to download
Workspace Resources
Cache workspace resources for offline use:
Language Tools
Cache language tools:
Documentation
Cache documentation:
Offline Synchronization
Prepare synchronization for when you return online:
Using ThinkCode Offline
Starting in Offline Mode
ThinkCode can start in offline mode even without internet:
- Launch ThinkCode normally
- If internet is unavailable, ThinkCode will automatically enter offline mode
- A notification will appear indicating offline status
- An offline indicator will show in the status bar
Offline Mode Indicator
The offline mode indicator provides status information:
- Solid Gray: Offline mode, all cached resources available
- Yellow: Offline mode, some resources unavailable
- Red: Offline mode with critical resources missing
Click the indicator for offline options menu:
- Toggle offline mode
- View missing resources
- Configure offline settings
- Check network status
Offline Feature Usage
Code Editing
All standard editing features work offline without modification.
Git Operations
Offline Git capabilities:
- Available: Commit, branch, stage, view history (local), diff, stash
- Unavailable: Push, pull, clone, fetch
Configure offline Git:
AI Features
Using AI features offline:
- Ensure local models are downloaded
- Access AI features as normal
- Note that responses may be less sophisticated than online
AI limitations in offline mode:
- Smaller language models
- No access to recent internet information
- Limited response generation capabilities
- Higher resource consumption
Debugging
Offline debugging limitations:
- Some debuggers require online access for configuration
- Pre-configure debuggers while online
- Some language-specific features may be unavailable
Offline Project Management
Working with Dependencies
Managing dependencies offline:
-
Pre-cache Dependencies:
- Run
ThinkCode: Cache Project Dependencies for Offline Use
- This downloads and caches required packages
- Run
-
Offline Package Viewer:
- View already downloaded packages
- See dependency status (cached/not cached)
-
Package Reference:
- Cached documentation for popular packages
- Offline API references
Multi-Project Workflow
Working with multiple projects offline:
-
Workspace Collections:
- Create workspace collections before going offline
- Switch between projects while offline
-
Project Templates:
- Cache project templates for offline use
- Create new projects from templates while offline
File Sharing in Offline Environments
For teams working together offline:
- Local Network Sharing:
- Share projects over local network without internet
- Enable in settings:
- Export/Import Workflow:
- Export project snapshots with dependencies
- Import on another ThinkCode instance
- Command:
ThinkCode: Export Offline Project Package
Offline Development Scenarios
Travel Mode
Optimize for development while traveling:
Enable Travel Mode:
- Command Palette
- Type "ThinkCode: Enable Travel Mode"
Air-Gapped Environments
For completely isolated environments:
Unreliable Connectivity
For environments with intermittent connections:
Returning Online
Reconnection Process
When internet connectivity returns:
- ThinkCode detects network availability
- The offline indicator turns into a sync button
- Click to begin synchronization (or it happens automatically if configured)
- Synchronization process:
- Push local Git changes
- Sync settings
- Update extensions
- Refresh AI models
- Download pending dependencies
Conflict Resolution
Handling conflicts during synchronization:
-
Git Conflicts:
- Standard Git conflict resolution UI opens
- Choose between local and remote changes
-
Settings Conflicts:
- Conflict resolution dialog shows differences
- Choose to keep local, remote, or merge settings
-
Extension Conflicts:
- Notification for extension updates
- Choose to update or keep current versions
Offline Management Tools
Offline Status Dashboard
View your offline readiness:
- Command Palette
- Type "ThinkCode: Show Offline Status"
- Dashboard shows:
- Ready offline features
- Limited offline features
- Unavailable features
- Cached resources status
- Storage usage
Storage Management
Manage offline storage:
Manage offline storage manually:
- Command Palette
- Type "ThinkCode: Manage Offline Storage"
- View and clean up storage categories
Troubleshooting Offline Mode
Common Offline Issues
Issue | Possible Causes | Solutions |
---|---|---|
Missing Features | Resources not cached | Run cache commands while online |
AI Not Working | Models not downloaded | Download compact models while online |
Extension Errors | Extensions requiring online resources | Install offline-compatible extensions |
Git Errors | Git operations requiring remote | Use local Git operations only |
High Resource Usage | Local AI models need more resources | Adjust resource settings for offline mode |
Sync Conflicts | Changes made online and offline | Use conflict resolution tools |
Diagnostic Tools
Diagnose offline issues:
- Command Palette
- Type "ThinkCode: Run Offline Diagnostics"
- Review issues and recommendations
Recovery Mode
If offline mode encounters problems:
- Command Palette
- Type "ThinkCode: Offline Recovery Mode"
- Options:
- Restore from last known good state
- Reset offline cache
- Verify offline resources
Enterprise Offline Configuration
For organization-wide offline settings: