Skip to content

Fix compile loop when one local workspace folder is a subfolder of another #1525

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 an issue reported by an ISC employee. They has a .code-workspace file with multiple local folders. One of them was a subfolder of another. When they saved a file in the subfolder, two file change events were triggered, one for each workspace folder. This caused a loop when the file would keep being synced to the server and compiled. I fixed the issue by checking that the uri of the file event is actually in the workspace folder before I try to sync the changes.

@isc-bsaviano isc-bsaviano merged commit 36817ac into intersystems-community:master Apr 3, 2025
5 checks passed
@isc-bsaviano isc-bsaviano deleted the overlapping branch April 3, 2025 22:25
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