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>
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
import 'package:clide/builtin/pql/src/backlinks_view.dart';
|
|
import 'package:clide/builtin/pql/src/pql_panel_view.dart';
|
|
import 'package:clide/extension/extension.dart';
|
|
import 'package:clide/kernel/kernel.dart';
|
|
import 'package:clide/widgets/widgets.dart';
|
|
|
|
class PqlExtension extends ClideExtension {
|
|
@override
|
|
String get id => 'builtin.pql';
|
|
@override
|
|
String get title => 'pql';
|
|
@override
|
|
String get version => '0.3.0';
|
|
@override
|
|
List<String> get dependsOn => const [];
|
|
|
|
@override
|
|
List<ContributionPoint> get contributions => [
|
|
TabContribution(
|
|
id: 'pql.panel',
|
|
slot: Slots.sidebar,
|
|
title: 'pql',
|
|
titleKey: 'tab.title',
|
|
i18nNamespace: id,
|
|
icon: PhosphorIcons.magnifyingGlass,
|
|
priority: -60,
|
|
build: (_) => const PqlPanelView(),
|
|
),
|
|
TabContribution(
|
|
id: 'pql.backlinks',
|
|
slot: Slots.contextPanel,
|
|
title: 'Links',
|
|
icon: PhosphorIcons.link,
|
|
priority: -80,
|
|
build: (_) => const BacklinksView(),
|
|
),
|
|
];
|
|
}
|