Skip to content

Invert term find widget relationship such that it's registered on an instance, not owned by it#175785

Merged
Tyriar merged 5 commits into
mainfrom
tyriar/find_refactor
Mar 1, 2023
Merged

Invert term find widget relationship such that it's registered on an instance, not owned by it#175785
Tyriar merged 5 commits into
mainfrom
tyriar/find_refactor

Conversation

@Tyriar

@Tyriar Tyriar commented Mar 1, 2023

Copy link
Copy Markdown
Contributor

Previously TerminalFindWidget was owned and managed by the terminal instance, the downside of this is that terminal find code is peppered throughout terminalInstance.ts, terminal.ts, terminalActions.ts, etc. This PR inverts the relationship and isolates all the find code (outside of xterm/XtermTerminal) in a find/ folder that has its own contribution file that is imported by the main terminal.contribution.

Fixes #175781

@Tyriar Tyriar added this to the March 2023 milestone Mar 1, 2023
@Tyriar Tyriar requested a review from meganrogge March 1, 2023 19:25
@Tyriar Tyriar self-assigned this Mar 1, 2023

@meganrogge meganrogge left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏼

@Tyriar Tyriar merged commit 6d2f5f8 into main Mar 1, 2023
@Tyriar Tyriar deleted the tyriar/find_refactor branch March 1, 2023 20:30
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hiding terminal find (via escape) should focus the terminal

2 participants