dynamic context panel tabs — spawn on demand, no empty placeholders
Context panel tabs are no longer static. Extensions spawn them dynamically when relevant and despawn on deactivate: - Tickets: detail tab spawns on builtin.tickets/selection - Decisions: detail tab spawns on builtin.decisions/selection - Backlinks: spawns when editor opens a file - Markdown viewer: spawns when editor opens a .md file - Graph: removed from static context (will be command-spawnable) The icon rail only shows what's active — no empty tabs sitting there waiting for content. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import 'package:clide/builtin/graph/src/graph_view.dart';
|
||||
import 'package:clide/extension/extension.dart';
|
||||
import 'package:clide/kernel/kernel.dart';
|
||||
|
||||
class GraphExtension extends ClideExtension {
|
||||
@override
|
||||
@@ -13,15 +11,5 @@ class GraphExtension extends ClideExtension {
|
||||
List<String> get dependsOn => const ['builtin.pql'];
|
||||
|
||||
@override
|
||||
List<ContributionPoint> get contributions => [
|
||||
TabContribution(
|
||||
id: 'graph.view',
|
||||
slot: Slots.contextPanel,
|
||||
title: 'Graph',
|
||||
titleKey: 'tab.graph',
|
||||
i18nNamespace: id,
|
||||
priority: -80,
|
||||
build: (_) => const GraphView(),
|
||||
),
|
||||
];
|
||||
List<ContributionPoint> get contributions => const [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user