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

CodeActions: Skip UI specific paths #1995

Closed
wants to merge 3 commits into from

Conversation

RXminuS
Copy link
Contributor

@RXminuS RXminuS commented Aug 7, 2024

Before the Cody CodeHighlight pass would apply to all editors, including those used in a "hacky" way to create UI elements such as the repo-input field used in the Cody sidebar.

🎥 Video uploaded on Graphite:

Now we explicitly ignore these fake file editors. Note that as a follow up we might need to consider that other extensions similarly "mis-use" editors in the same way we did and that ignoring our specific paths isn't a long-term solution.

Fixes CODY-3166 / #1991

Test plan

Manually verified that HighlightPass no longer applies to the Repo Editor

Copy link
Contributor Author

RXminuS commented Aug 7, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @RXminuS and the rest of your teammates on Graphite Graphite

@RXminuS RXminuS requested a review from pkukielka August 7, 2024 10:32
@RXminuS RXminuS added the bug Something isn't working label Aug 7, 2024 — with Graphite App
@RXminuS RXminuS changed the title Skip highlight pass for ignored paths Code Actions: Skip for ignored paths Aug 7, 2024
@RXminuS RXminuS changed the title Code Actions: Skip for ignored paths Code Actions: Skip UI specific paths Aug 7, 2024
@RXminuS RXminuS marked this pull request as ready for review August 7, 2024 10:33
@RXminuS RXminuS changed the title Code Actions: Skip UI specific paths CodeActions: Skip UI specific paths Aug 7, 2024
Base automatically changed from rnauta/cody-3166-sourcegraphjetbrains1991-jetbrains-ask-cody-to-fix-and-ask to main August 7, 2024 11:12
@pkukielka
Copy link
Contributor

@RXminuS Closing this one in place of https://github.com/sourcegraph/jetbrains/pull/1998/files

@pkukielka pkukielka closed this Aug 7, 2024
pkukielka added a commit that referenced this pull request Aug 7, 2024
## Changes 

Replaces #1995

Fixes Fixes
[CODY-3166](https://linear.app/sourcegraph/issue/CODY-3166/sourcegraphjetbrains1991-jetbrains-ask-cody-to-fix-and-ask-cody-to)
/ #1991

Mock files are used for in-memory buffers. Normally all editable code
files are not mocks/in-memory files (even scratches are normal files) so
we can assume if file is mock it is most likely some special component
for which we do not want to add cody error highlighting.

## Test plan

Manually verified that HighlightPass no longer applies to the Repo
Editor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants