-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect cross-project event propagation (#2662)
## Changes Due to incorrect implementation of event listeners, if more than one project was open, events like caret change were propagated between editors. This PR fixes it. ## Test plan Test separately with four different options ([opened file | active file | caret position | selected text]): 1. Open two projects in IntelliJ. 2. Change [opened file | active file | caret position | selected text] for the first project 3. Change [opened file | active file | caret position | selected text] for the second project 4. Files set as context in the Cody chat should be different and match files activated on the previous steps.
- Loading branch information
Showing
5 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
src/main/kotlin/com/sourcegraph/cody/config/CodySettingsFileChangeListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters