Register files.read command for reading file content by relative path. Remove top padding on context panel container and mainAxisSize.min from ClidePaneChrome so the header sits flush and the pane fills available height. Context panel max raised from 420px to 1000px. Co-Authored-By: Claude <noreply@anthropic.com>
44 lines
1.3 KiB
Dart
44 lines
1.3 KiB
Dart
import 'package:clide/extension/src/contribution.dart';
|
||
import 'package:clide/kernel/src/panels/slot_id.dart';
|
||
|
||
/// Canonical "three-column + statusbar" preset — the default-layout
|
||
/// extension contributes this at Tier 0. Split out so tests and the
|
||
/// default-layout extension share one source of truth.
|
||
///
|
||
/// Columns (px):
|
||
/// sidebar 400 (drag 180–400)
|
||
/// center flex (workspace on top, statusbar below)
|
||
/// context 420 (drag 220–420)
|
||
/// statusbar 26 (fixed height strip)
|
||
LayoutPresetContribution classicPreset() => const LayoutPresetContribution(
|
||
id: 'builtin.default-layout.classic',
|
||
displayName: 'Classic',
|
||
slots: [
|
||
LayoutSlot(
|
||
slot: Slots.sidebar,
|
||
position: SlotPosition.left,
|
||
defaultSize: 400,
|
||
minSize: 180,
|
||
maxSize: 400,
|
||
),
|
||
LayoutSlot(
|
||
slot: Slots.workspace,
|
||
position: SlotPosition.center,
|
||
),
|
||
LayoutSlot(
|
||
slot: Slots.contextPanel,
|
||
position: SlotPosition.right,
|
||
defaultSize: 420,
|
||
minSize: 220,
|
||
maxSize: 1000,
|
||
),
|
||
LayoutSlot(
|
||
slot: Slots.statusbar,
|
||
position: SlotPosition.bottom,
|
||
defaultSize: 26,
|
||
minSize: 26,
|
||
maxSize: 26,
|
||
),
|
||
],
|
||
);
|