Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 31, 2025

Implements a minimal "Sample Explorer" view demonstrating the workbench explorer pattern.

Implementation

  • ViewPane: SampleExplorerView extends ViewPane with proper service injection
  • Container: SampleExplorerViewPaneContainer registered in sidebar (order: 10, file-code icon)
  • Registration: Workbench contribution at BlockStartup phase
  • Integration: Added to workbench.common.main.ts imports

Structure

// Constants defined in common/
export const VIEWLET_ID = 'workbench.view.sampleExplorer';
export const VIEW_ID = 'workbench.sampleExplorer.view';

// View extends ViewPane with standard DI pattern
export class SampleExplorerView extends ViewPane {
  static readonly ID = VIEW_ID;
  static readonly NAME = localize('sampleExplorer', "Sample Explorer");
  
  protected override renderBody(container: HTMLElement): void {
    super.renderBody(container);
    container.textContent = localize('sampleExplorerContent', 
      "Sample Explorer - This is a new explorer implementation!");
  }
}

Files Added

  • src/vs/workbench/contrib/sampleExplorer/ - Core implementation (7 files, 279 LOC)
  • Unit tests verifying view constants and initialization
  • README and ARCHITECTURE docs

Serves as reference implementation for custom explorer views. Ready for extension with tree widgets, renderers, and actions.

Original prompt

implement new explorer

The user has attached the following files as relevant context:

  • .github/instructions/learnings.instructions.md
  • .github/copilot-instructions.md
  • .github/copilot-instructions.md

Created from VS Code via the GitHub Pull Request extension.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Implement new explorer feature Add Sample Explorer view implementation Oct 31, 2025
Copilot AI requested a review from bpasero October 31, 2025 15:51
Copilot finished work on behalf of bpasero October 31, 2025 15:51
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