First draft of a feature tree pane (#4782)

This commit is contained in:
Frank Noirot
2024-12-20 16:19:59 -05:00
committed by GitHub
parent 1d06cc7845
commit c02e31a530
78 changed files with 1466 additions and 65 deletions

View File

@ -17,12 +17,14 @@ import { useKclContext } from 'lang/KclProvider'
import { editorManager } from 'lib/singletons'
import { ContextFrom } from 'xstate'
import { settingsMachine } from 'machines/settingsMachine'
import { FeatureTreePane } from './FeatureTreePane'
export type SidebarType =
| 'code'
| 'debug'
| 'export'
| 'files'
| 'feature-tree'
| 'logs'
| 'lspMessages'
| 'variables'
@ -69,6 +71,23 @@ export type SidebarAction = {
// changes to be a spinning loader on loading.
export const sidebarPanes: SidebarPane[] = [
{
id: 'feature-tree',
icon: 'model',
keybinding: 'Shift + T',
sidebarName: 'Feature Tree',
Content: (props) => (
<>
<ModelingPaneHeader
id={props.id}
icon="model"
title="Feature Tree"
onClose={props.onClose}
/>
<FeatureTreePane />
</>
),
},
{
id: 'code',
icon: 'code',