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

Code generate by copilot is every same color #2799

Open
IaroslavGusiev opened this issue Dec 16, 2024 · 4 comments
Open

Code generate by copilot is every same color #2799

IaroslavGusiev opened this issue Dec 16, 2024 · 4 comments

Comments

@IaroslavGusiev
Copy link

Have you checked the issues and discussions to ensure there are no duplicates?

Yes

Are you using JetBrains Client / Code With Me / IntelliJ Remote Development?

No

Your programming languages

C#

Free or paid?

Paid users

Expected Behavior

After code generate with copilot, rainbow brackets must recognize this action and applys color logic for it.

Current Behavior

Right now a lot of times after code generate by copilot became in one color. Only refresh of soultion helps.

Code snippet for reproduce

any code

Your Environment

Rider
@izhangzhihao
Copy link
Owner

generate by copilot?any screenshots?

@IaroslavGusiev
Copy link
Author

generate by copilot?any screenshots?

will try to catch and capture

@IaroslavGusiev
Copy link
Author

IaroslavGusiev commented Dec 18, 2024

generate by copilot?any screenshots?1) after generation 2) after reload IDE 3) in constructor
image
22
333

@izhangzhihao
Copy link
Owner

The syntax highlighting is implemented based on the IDE's PSI (Program Structure Interface) syntax tree. On this basis, the IDE needs to trigger the highlighter to refresh the modified parts of the code to complete the highlighting. Currently, the issue is that the code has been updated, but the highlighter is not triggered. It is recommended to report this issue to JetBrains and request them to enhance the mechanism for triggering the highlighter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants