Skip to content

Conversation

@IanMayo
Copy link
Member

@IanMayo IanMayo commented Aug 27, 2025

Summary

Implements comprehensive outline panel integration for the Debrief VS Code Extension's custom GeoJSON editor with map-based feature highlighting capability.

Key Features

  • Custom tree view displaying GeoJSON features in Explorer sidebar
  • Real-time outline updates when switching between .plot.json files
  • Click-to-highlight functionality - selecting features in outline highlights them on the Leaflet map
  • Automatic map panning to highlighted features
  • Visual highlighting with orange circle markers for enhanced visibility

Technical Implementation

  • Custom TreeDataProvider that parses GeoJSON FeatureCollection documents
  • WebView message passing system for outline-to-map communication
  • Active webview panel tracking for multi-tab support
  • Graceful error handling for malformed GeoJSON files

Files Modified

  • src/customOutlineTreeProvider.ts - Main outline tree view implementation
  • src/plotJsonEditor.ts - Enhanced custom editor with webview messaging
  • src/extension.ts - Extension registration and command handling
  • media/plotJsonEditor.js - Map highlighting functionality
  • package.json - Tree view and command contributions

Test Plan

  • Open .plot.json files and verify outline populates with feature names
  • Switch between multiple .plot.json tabs and confirm outline updates
  • Click on outline entries and verify map highlighting works
  • Test with files containing multiple features (London, Paris, Berlin examples)
  • Verify highlights clear when selecting different features
  • Confirm map pans to highlighted features automatically

Research Documentation

Includes comprehensive research documentation on VS Code custom editor outline integration challenges and proven workarounds for future reference.

Resolves outline panel integration requirements with robust, production-ready implementation.

@github-actions
Copy link

🚀 PR Preview Deployed

Your PR preview has been successfully deployed to Fly.io!

🌐 Preview URL: https://pr-5-futuredebrief.fly.dev

📋 Details:

🔧 What's included:

  • VS Code (code-server) environment
  • Debrief extension pre-installed
  • Sample workspace with test files

💡 How to use:

  1. Click the preview URL above
  2. Open any .plot.json file to test the custom editor
  3. Use Ctrl+Shift+P to access extension commands
  4. Check the Explorer panel for the "Hello World" view

This preview will be automatically updated when you push new commits to this PR.

@IanMayo IanMayo merged commit c2fe0a9 into main Aug 27, 2025
2 checks passed
@IanMayo IanMayo deleted the features-outline branch August 27, 2025 19:46
@github-actions
Copy link

🧹 PR Preview Cleaned Up

Your PR preview environment has been automatically destroyed.

✅ Cleanup successful!

All associated resources have been removed from Fly.io to optimize costs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants