Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add custom VS editor for viewing Couchbase documents in tabbed editor pane
  • Double-click or right-click "Open Document" on document nodes to open viewer
  • Display document ID, collection path (bucket.scope.collection), and CAS value in header
  • Provide Refresh button to reload document content from Couchbase
  • Provide Copy JSON button to copy formatted content to clipboard
  • Use Consolas font for JSON content display

New Files

  • Editors/DocumentEditorControl.xaml - XAML UI for document viewer
  • Editors/DocumentEditorControl.xaml.cs - Code-behind with Refresh/Copy handlers
  • Editors/DocumentEditorPane.cs - WindowPane hosting the control
  • Editors/DocumentEditorFactory.cs - IVsEditorFactory for .cbjson files
  • Services/DocumentEditorService.cs - Service to open documents in custom editor

Test plan

  • Connect to a Couchbase cluster
  • Expand to a collection with documents
  • Double-click a document - verify custom editor opens in tab
  • Verify document ID, collection path, and CAS are displayed correctly
  • Verify JSON content is formatted and displayed
  • Click Refresh - verify content reloads
  • Click Copy JSON - verify content is copied to clipboard
  • Right-click document and select "Open Document" - verify same behavior

Add custom VS editor for viewing Couchbase documents with:
- DocumentEditorControl XAML UI showing document ID, collection path, CAS
- Refresh and Copy JSON buttons in header
- Formatted JSON content display with Consolas font
- DocumentEditorFactory registered for .cbjson file extension
- Double-click or right-click "Open Document" to view documents
@CalvinAllen CalvinAllen merged commit 4aa9392 into main Dec 22, 2025
3 checks passed
@CalvinAllen CalvinAllen deleted the feat/documents/view-document branch December 22, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants