Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move focus and selection change handlers to event emitters #235555

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

EricGusmao
Copy link

This pull request includes minor changes to the RenameWidget and RenameCandidateListView classes in the src/vs/editor/contrib/rename/browser/renameWidget.ts file. The changes focus on refactoring event handling to use event emitters instead of direct function calls. As suggested by @ulugbekna in his FIXME comment

Refactoring event handling:

  • RenameWidget: Removed inline event handler functions for focus and selection changes from the RenameCandidateListView constructor, and added them as disposables separately.
  • Replaced direct function calls for onFocusChange and onSelectionChange with event emitters _onFocusChange and _onSelectionChange.

@EricGusmao
Copy link
Author

@microsoft-github-policy-service agree

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.

3 participants