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

Fix std::string token type name in LanguageServer semantic tokens #15758

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

vtjl10
Copy link
Contributor

@vtjl10 vtjl10 commented Jan 23, 2025

Description:
Removes incorrect std:: prefix from string token type in semantic tokens legend. This fixes the token type name to match LSP specification requirements.
Changed:
tokenTypes.emplace_back("std::string") -> tokenTypes.emplace_back("string")

Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

cameel
cameel previously approved these changes Jan 23, 2025
@vtjl10
Copy link
Contributor Author

vtjl10 commented Jan 23, 2025

@cameel ready

Comment on lines -2532 to +2533
std::string const& license = licenseNames.front();
if (regex_match(license, licenseNameRegex))
std::string const& license = licenseNames.front();
if (regex_match(license, licenseNameRegex))
Copy link
Member

Choose a reason for hiding this comment

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

Note that we use tabs, not spaces for indentation in C++ files. The indentation for if is also now broken.

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

Successfully merging this pull request may close these issues.

2 participants