Icons now declared on TabContribution via the icon field — the hardcoded switch in _BottomRail is a fallback only. All sidebar and context extensions set their Phosphor icon explicitly. PanelRegistry supports setTabOrder(slot, List<String>) — tabs render in the order specified by project.layout.sidebar.order / context.order in settings.yaml. Falls back to registration order. Priority field removed from all contributions. Context tabs are static again — persist with their last content, selection just loads new data and switches focus. No spawn/despawn. Tickets sidebar priority set to -200 (leftmost, default open). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1018 B
Dart
34 lines
1018 B
Dart
import 'package:clide/builtin/files/src/file_tree_view.dart';
|
|
import 'package:clide/extension/extension.dart';
|
|
import 'package:clide/kernel/kernel.dart';
|
|
import 'package:clide/widgets/widgets.dart';
|
|
|
|
/// Workspace filesystem panel. Contributes a sidebar tab that renders
|
|
/// the workspace file tree rooted at the git root, powered by the
|
|
/// daemon's `files.*` subsystem (ls + watch with ignore-file
|
|
/// filtering).
|
|
class FilesExtension extends ClideExtension {
|
|
@override
|
|
String get id => 'builtin.files';
|
|
@override
|
|
String get title => 'Files';
|
|
@override
|
|
String get version => '0.1.0';
|
|
@override
|
|
List<String> get dependsOn => const [];
|
|
|
|
@override
|
|
List<ContributionPoint> get contributions => [
|
|
TabContribution(
|
|
id: 'files.tree',
|
|
slot: Slots.sidebar,
|
|
title: 'Files',
|
|
icon: PhosphorIcons.folder,
|
|
titleKey: 'tab.title',
|
|
i18nNamespace: id,
|
|
priority: -100,
|
|
build: (_) => const FileTreeView(),
|
|
),
|
|
];
|
|
}
|