Documentation
¶
Index ¶
- func LocalOpenPath(name string) string
- type Mod
- func (m *Mod) Destroy(c *module.Context) error
- func (m *Mod) Enter(c *module.Context, _ module.SceneStartup) error
- func (m *Mod) Install(c *module.Context) error
- func (m *Mod) OnMessage(c *module.Context, message module.Message) error
- func (m *Mod) OnOpenProject(c *module.Context, value string) error
- func (m *Mod) Resume(c *module.Context, v module.SceneStartup) error
- func (m *Mod) Update(c *module.Context, _ module.Tick) error
- type Session
- func (s *Session) ActivateProject(profile connection.Profile, directory string) bool
- func (s *Session) Close()
- func (s *Session) ConfigureConnection(...)
- func (s *Session) ConfigureWindows(id string, restore bool) ([]string, error)
- func (s *Session) FinishUpdate() error
- func (s *Session) HandleFileDrop(dispatch *input.Dispatch)
- func (s *Session) LayoutSystem() ecs.SystemConfig
- func (s *Session) LocalProjectRoot(name string) string
- func (s *Session) OpenPaths(paths ...string)
- func (s *Session) OpenWindow(paths []string) error
- func (s *Session) ProfilingSystem(recorder *profiling.Recorder) ecs.SystemConfig
- func (s *Session) QueueRemoteProject(profile connection.Profile) bool
- func (s *Session) Register(registry *module.Registry) error
- func (s *Session) RestoredWindowSize() (int, int)
- func (s *Session) ScrollSystem() ecs.SystemConfig
- func (s *Session) SetProjectActivator(activate func(*Session, connection.Profile, string) bool)
- func (s *Session) SetWindowOpener(open func([]string, connection.Profile) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalOpenPath ¶
Local project identities follow the backend's absolute, symlink-resolved roots.
Types ¶
type Session ¶
type Session struct {
// Actions accepts native registrations before or after the session starts.
Actions actions.Registry
Output output.Store
// contains filtered or unexported fields
}
Session keeps the foreground model available while preloaded views own their HTML, editor entities and resource readers independently.
func NewSession ¶
func (*Session) ActivateProject ¶
func (s *Session) ActivateProject(profile connection.Profile, directory string) bool
ActivateProject also recognizes requests queued before the first window frame.
func (*Session) ConfigureConnection ¶
func (s *Session) ConfigureConnection(dial func(context.Context, connection.Profile, func(string)) (*client.Client, error), initial connection.Profile)
ConfigureConnection enables the shared local/remote lifecycle. Tests may inject a dial function without spawning an editor or using an external host.
func (*Session) ConfigureWindows ¶
ConfigureWindows claims this window's record and returns the additional window IDs to launch on a cold application start.
func (*Session) FinishUpdate ¶
FinishUpdate is called after the UI and backend have released their resources.
func (*Session) HandleFileDrop ¶
HandleFileDrop consumes external files before ordinary editor input.
func (*Session) LayoutSystem ¶
func (s *Session) LayoutSystem() ecs.SystemConfig
LayoutSystem aligns decorations with the final native textarea scroll and HTML bounds in the same frame, including when the next frame is far away.
func (*Session) LocalProjectRoot ¶
LocalProjectRoot returns the most specific workspace containing a local path.
func (*Session) OpenPaths ¶
OpenPaths queues native drops, shell arguments and Finder document events. Call on the window thread; inputs received before the first scene are retained.
func (*Session) OpenWindow ¶
func (*Session) ProfilingSystem ¶
func (s *Session) ProfilingSystem(recorder *profiling.Recorder) ecs.SystemConfig
ProfilingSystem samples renderer-owned state on the application thread. It never requests a frame: idle observations retain their original timestamp.
func (*Session) QueueRemoteProject ¶
func (s *Session) QueueRemoteProject(profile connection.Profile) bool
QueueRemoteProject adds another directory to the window already assigned to this host.
func (*Session) RestoredWindowSize ¶
func (*Session) ScrollSystem ¶
func (s *Session) ScrollSystem() ecs.SystemConfig
ScrollSystem synchronizes comparison panes after wheel/drag input and before HTML culling and native control layout consume their scroll positions.
func (*Session) SetProjectActivator ¶
SetProjectActivator connects lookups to the other windows on the UI thread.
func (*Session) SetWindowOpener ¶
func (s *Session) SetWindowOpener(open func([]string, connection.Profile) error)
SetWindowOpener connects requests to the owning desktop application. The callback queues creation outside the current window's rendering frame.
Source Files
¶
- action_shortcuts.go
- actions.go
- backend.go
- background.go
- builtin_lsp.go
- changed_range.go
- connection.go
- custom_editor.go
- debugger.go
- debugger_editor.go
- debugger_templates.go
- editor.go
- editor_brackets.go
- editor_context.go
- editor_diagnostics.go
- editor_fold_gutter.go
- editor_folding.go
- editor_header.go
- editor_navigation.go
- editor_navigation_highlight.go
- editor_shortcuts.go
- editor_tabs.go
- extension_clipboard.go
- extension_completion.go
- extension_expanded.go
- extension_grid.go
- extension_grid_source.go
- extension_images.go
- extension_input_links.go
- extension_lifecycle.go
- extension_links.go
- extension_regions.go
- extension_scratch.go
- extension_selection.go
- extension_settings.go
- extension_tabs.go
- extension_ui.go
- extensions.go
- external_open.go
- file_context.go
- file_drag.go
- file_io.go
- file_open.go
- file_operations.go
- file_page.go
- find.go
- find_highlight.go
- find_rendered.go
- find_selection.go
- flags.go
- folder_search.go
- folder_search_highlight.go
- fonts.go
- highlight.go
- highlight_cache.go
- highlight_worker.go
- history.go
- image_cache.go
- image_preview.go
- image_view.go
- indent.go
- input_context.go
- keymaps.go
- language_settings.go
- layout_resize.go
- localization.go
- lsp.go
- lsp_completion.go
- lsp_diff.go
- lsp_edits.go
- lsp_folding.go
- lsp_hover.go
- lsp_interaction.go
- lsp_references.go
- lsp_semantic.go
- lsp_ui.go
- marketplace.go
- mod.go
- panels.go
- pencode.go
- ports.go
- ports_shortcuts.go
- ports_state.go
- ports_worker.go
- profiling.go
- project_menu.go
- project_picker.go
- project_routing.go
- project_scan.go
- project_state.go
- project_tabs.go
- project_watch.go
- quick_history.go
- quick_open.go
- recent_projects.go
- refresh.go
- session.go
- settings.go
- settings_remote.go
- source_actions.go
- source_branches.go
- source_control.go
- source_diff_text.go
- source_edit.go
- source_editor.go
- source_graph.go
- source_highlight.go
- source_inline.go
- source_merge.go
- source_overview.go
- source_repositories.go
- source_scroll.go
- source_submodule.go
- source_tree.go
- source_vnode.go
- source_workspace.go
- symbol_fonts.go
- tab_context.go
- tab_indicator.go
- tabs.go
- terminal.go
- terminal_context.go
- terminal_input.go
- terminal_selection.go
- terminal_view.go
- text_snapshot.go
- theme.go
- tooltip.go
- tree_git.go
- tree_selection.go
- tree_virtual.go
- updates.go
- windows.go