ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- description: Use when asked to consume workbench tree widgets in VS Code. ---
Location: src/vs/platform/list/browser/listService.ts Type: Platform Services Layer: Platform
The Workbench Tree Widgets provide high-level, workbench-integrated tree components that extend the base tree implementations with VS Code-specific functionality like context menus, keyboard navigation, theming, accessibility, and dependency injection integration. These widgets serve as the primary tree components used throughout the VS Code workbench for file explorers, debug views, search results, and other hierarchical data presentations.
WorkbenchTreeInternals), and configuration utilitiessrc/vs/platform/list/browser/test/listService.test.ts: Unit tests for workbench treessrc/vs/base/test/browser/ui/tree/objectTree.test.ts: Base tree testssrc/vs/base/test/browser/ui/tree/asyncDataTree.test.ts: Async tree testssrc/vs/base/test/browser/ui/tree/dataTree.test.ts: Data tree tests1. WorkbenchObjectTree: Use for simple, static hierarchical data that doesn't change frequently ``typescript // Example: Timeline items, loaded scripts const tree = instantiationService.createInstance( WorkbenchObjectTree<TimelineItem, FuzzyScore>, 'TimelineView', container, delegate, renderers, options );
2. WorkbenchAsyncDataTree: Use for dynamic data that loads asynchronously ``typescript // Example: Debug variables, file contents const tree = instantiationService.createInstance( WorkbenchAsyncDataTree<IStackFrame, IExpression, FuzzyScore>, 'VariablesView', container, delegate, renderers, dataSource, options );
3. **WorkbenchCompressible*Tree**: Use when you need path compression for deep hierarchies ``typescript // Example: File explorer, call stack const tree = instantiationService.createInstance( WorkbenchCompressibleAsyncDataTree<ExplorerItem[], ExplorerItem, FuzzyScore>, 'FileExplorer', container, delegate, compressionDelegate, renderers, dataSource, options );
Always use IInstantiationService.createInstance() to ensure proper dependency injection:
constructor(
@IInstantiationService private instantiationService: IInstantiationService
) {
this.tree = this.instantiationService.createInstance(
WorkbenchAsyncDataTree<TInput, T, TFilterData>,
'UniqueTreeId', // Used for settings and context keys
container, // DOM container element
delegate, // IListVirtualDelegate for item height/template
renderers, // Array of tree renderers
dataSource, // Data source (async trees only)
options // Tree configuration options
);
}All workbench trees require an accessibilityProvider:
const options: IWorkbenchAsyncDataTreeOptions<T, TFilterData> = {
accessibilityProvider: {
getAriaLabel: (element: T) => element.name,
getRole: () => 'treeitem'
}
// ... other options
};// Standard tree setup with search, identity, and navigation
const options = {
accessibilityProvider: new MyAccessibilityProvider(),
identityProvider: { getId: (element) => element.id },
keyboardNavigationLabelProvider: {
getKeyboardNavigationLabel: (element) => element.name
},
multipleSelectionController: {
isSelectionSingleChangeEvent: (e) => e.ctrlKey || e.metaKey,
isSelectionRangeChangeEvent: (e) => e.shiftKey
},
overrideStyles: this.getLocationBasedColors().listOverrideStyles
};---