Skip to content

Improve triggering of AttemptedEdit source control action #1380

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

Merged

Conversation

isc-bsaviano
Copy link
Contributor

This PR fixes a bug reported by an internal developer related to the firing of the AttemptedEdit source control action. The developer reported that after reverting a file in the source control UI (not VS Code) when VS Code refreshed its copy of the file the AttemptedEdit action was incorrectly fired, and then upon the next edit to the file the action was not fired. I determined that this was due to the suppressEditListenerMap that was added to avoid firing the action when the file was reverted by the the source control hook. I fixed this issue by changing the criteria that were checked before firing the action so the map was no longer needed.

@isc-bsaviano isc-bsaviano merged commit ffa55d0 into intersystems-community:master Jul 3, 2024
5 checks passed
@isc-bsaviano isc-bsaviano deleted the attempted-edit branch July 3, 2024 15:13
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.

2 participants