Skip to content

Conversation

@cameronmpalmer
Copy link
Contributor

@cameronmpalmer cameronmpalmer commented Jan 13, 2026

Summary

Adds a new setting dataExplorer.enablePreview that controls whether Data Explorer tabs open in preview mode, addressing user feedback about tab clutter when clicking through multiple CSV files.

  • When enabled (default): Data Explorer tabs open in preview mode (italicized tab name), and opening another Data Explorer replaces the previous preview tab
  • When disabled: Data Explorer tabs open pinned (traditional behavior)

Addresses #11289

QA Notes

@:data-explorer

Testing Steps

  1. Preview mode enabled (default):

    • Open Settings, verify dataExplorer.enablePreview is checked (true)
    • Click a CSV file in the Explorer → tab should appear in italics
    • Click another CSV file → should replace the previous preview tab
    • Double-click the tab → should pin it (remove italics)
  2. Preview mode disabled:

    • Open Settings, uncheck dataExplorer.enablePreview
    • Click a CSV file → tab should be pinned (no italics)
    • Click another CSV file → should open as a new pinned tab
  3. Runtime data frames:

    • In Python/R console, view a data frame
    • Should respect the same preview setting
  4. Tab interactions:

    • Right-click a preview tab → "Keep Open" should pin it
    • Verify parquet files also respect the setting

Add new setting `dataExplorer.enablePreview` (default: true) that controls
whether Data Explorer tabs open in preview mode. When enabled, tabs open
with italicized names and are replaced by the next Data Explorer opened,
matching VS Code's text file preview behavior.

- Add configuration setting and helper function in positronDataExplorerSummary.ts
- Update positronDataExplorerService.ts to use setting for runtime data frames
- Update positronDataExplorerEditor.contribution.ts for file-based data (CSV, Parquet)
@github-actions
Copy link

github-actions bot commented Jan 13, 2026

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:data-explorer

readme  valid tags

properties: {
[DATA_EXPLORER_ENABLE_PREVIEW_KEY]: {
type: 'boolean',
default: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't reviewed this in detail yet, but we'll need to default to false here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

Copy link
Contributor

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution!

@juliasilge juliasilge merged commit 154e776 into main Jan 16, 2026
17 checks passed
@juliasilge juliasilge deleted the feature/data-explorer-preview-mode branch January 16, 2026 18:13
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants