Skip to content

fix: Semantic highlighting often flickers while editing code. - #485

Merged
angelozerr merged 1 commit into
redhat-developer:mainfrom
angelozerr:semanticTokens_cancel
Aug 27, 2024
Merged

angelozerr merged 1 commit into
redhat-developer:mainfrom
angelozerr:semanticTokens_cancel

Conversation

@angelozerr

Copy link
Copy Markdown
Contributor

fix: Semantic highlighting often flickers while editing code.

Fixes #477

@angelozerr

Copy link
Copy Markdown
Contributor Author

@CppCXY could you tell me if this PR improves your issue?

@CppCXY

CppCXY commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

@CppCXY could you tell me if this PR improves your issue?

look like work well:
semantic1

@angelozerr
angelozerr force-pushed the semanticTokens_cancel branch from e2399e3 to 807342c Compare August 27, 2024 12:20
@angelozerr

Copy link
Copy Markdown
Contributor Author

look like work well:

That's great!

Could you retry it please. I have simplfied the semantic token support to take care only of file and ignoring PsiElement like https://github.com/JetBrains/intellij-community/blob/840e8558c5be4e3d35c66619208d0e77112169db/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/TodoHighlightVisitor.java#L39 does.

@CppCXY

CppCXY commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

work well, but another issue: the diagnostics for unused variables are also refreshed very frequently.
unused

@angelozerr

Copy link
Copy Markdown
Contributor Author

work well, but another issue: the diagnostics for unused variables are also refreshed very frequently.

It is an another issue since unused variable is manage by Diagnostic and not semantic tokens. Please create a new isse for that.

Thanks for having tested the PR.

I merge it.

@angelozerr
angelozerr merged commit 29fe5a3 into redhat-developer:main Aug 27, 2024
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.

Semantic highlighting often flickers while editing code.

2 participants