Skip to content

Conversation

@sebthom
Copy link
Member

@sebthom sebthom commented Dec 1, 2025

Fixes #891

* Delegates to {@link Character#isUnicodeIdentifierPart}.
*/
public static boolean isIdentifierPart(final char ch) {
return Character.isUnicodeIdentifierPart(ch);
Copy link
Contributor

Choose a reason for hiding this comment

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

from the documentation, it is clear that we are handling '_' as before, but what about '$'?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added the isWordPart method as part of #1375 which also included '$'. In all other places of the codebase we do not check for '$' but only use Character.isUnicodeIdentifierPart() So to be consistent I think not checking for $ is actually the right call.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am a bit hesitant because '$' can be part of an identifier in some languages (at least java allows them, and we in my company extensevily used '$' in identifiers for our own languages) but since this only affects a fallback in case the LS is not responding fast enough, and even then, it would only reduce the number of calls to hovers, I think we can try it if you think it is the right call. Would you mind rebasing and resolving conflicts? Then I would approve and merge it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it is the right call.

@sebthom sebthom force-pushed the issue-891 branch 2 times, most recently from 312f6b1 to e5c2a3d Compare December 1, 2025 16:49
@sebthom sebthom requested a review from rubenporras December 1, 2025 18:07
Copy link
Contributor

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

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

could you bump the version numbers of the test plugin?

@sebthom sebthom merged commit f5eb029 into eclipse-lsp4e:main Dec 10, 2025
12 checks passed
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.

Rename symbol always opens a dialog

2 participants