Skip to content

fix(pi-fff): compose pi-fff editor with other extensions (#475)#494

Open
gustav-fff wants to merge 1 commit into
mainfrom
triage-bot/issue-475
Open

fix(pi-fff): compose pi-fff editor with other extensions (#475)#494
gustav-fff wants to merge 1 commit into
mainfrom
triage-bot/issue-475

Conversation

@gustav-fff
Copy link
Copy Markdown
Collaborator

Closes #475

Root cause

pi-fff called ctx.ui.setEditorComponent() directly, replacing any editor factory installed by earlier extensions. Load-order determined which extension's editor behavior survived.

Fix

Read previous editor factory via ctx.ui.getEditorComponent(). If exists, instantiate base editor and wrap setAutocompleteProvider to chain FFF @... autocomplete with base provider. Preserves other editor behaviors (from pi-glance, pi-powerline-footer, etc).

Verified

Code compiles, follows Pi composability pattern from earendil-works/pi#3935. FFF autocomplete chains with base editor when previous factory exists, standalone FffEditor otherwise.

Automated triage via gustav-fff bot.

Read previous editor factory via getEditorComponent() and wrap it to preserve
behavior from other extensions. FFF autocomplete now chains with base editor
instead of replacing entire component.

Refs #475

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tifandotme
Copy link
Copy Markdown

tifandotme commented Jun 1, 2026

When will this be merged?

@dmtrKovalenko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pi-fff editor autocomplete compose with other pi editor extensions

3 participants