Skip to content

Conversation

@pranavgaikwad
Copy link
Contributor

@pranavgaikwad pranavgaikwad commented Apr 11, 2025

API Tests PR: 270

This PR introduces new API NotifyFileChanges() in the providers. It is supposed to be used to send changes to files that happen in the editor.

Currently, the api is implemented by the builtin provider where - it introduces a new working copy manager that listens for file changes and writes changes to a temp location. It then uses these new paths to make additional search and excludes the original paths. As soon as a file is saved, the temp copies are discarded.

It uses inclusion / exclusion constraints dynamically; I also refactored how we were using include / exclude and doing file searches as the logic was duplicated in different conditions. I consolidated all that under FileSearcher

@pranavgaikwad pranavgaikwad added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 11, 2025
@pranavgaikwad pranavgaikwad force-pushed the feature/documentChangeListeners branch 7 times, most recently from df16978 to 2787dbe Compare April 13, 2025 15:20
@pranavgaikwad pranavgaikwad force-pushed the feature/documentChangeListeners branch 3 times, most recently from f310c7f to 45f25f3 Compare April 15, 2025 14:42
@pranavgaikwad pranavgaikwad marked this pull request as ready for review April 16, 2025 12:12
@pranavgaikwad pranavgaikwad requested review from eemcmullan, jmle and shawn-hurley and removed request for eemcmullan, jmle and shawn-hurley April 16, 2025 12:12
@pranavgaikwad pranavgaikwad marked this pull request as draft April 16, 2025 12:13
@pranavgaikwad pranavgaikwad force-pushed the feature/documentChangeListeners branch from 6a035ae to 47f9939 Compare April 17, 2025 01:10
@pranavgaikwad pranavgaikwad removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 17, 2025
@pranavgaikwad pranavgaikwad marked this pull request as ready for review April 17, 2025 01:10
jortel added a commit to konveyor/tackle2-addon-analyzer that referenced this pull request Apr 22, 2025
Build with latest analyzer-lsp
konveyor/analyzer-lsp#814
Latest hub with tag category Rank and Username deprecated.

Signed-off-by: Jeff Ortel <[email protected]>
Copy link
Contributor

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

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

This is clean, I like it. I saw a few TODOs/unimplemented change listeners, if that's not a big deal then LGTM

@pranavgaikwad pranavgaikwad force-pushed the feature/documentChangeListeners branch from 47f9939 to 914cfa0 Compare April 29, 2025 21:28
Signed-off-by: Pranav Gaikwad <[email protected]>
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