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

Function inlay hints don't work with std::string_literal arguments #10078

Closed
sean-mcmanus opened this issue Oct 28, 2022 · 0 comments
Closed
Assignees
Labels
bug Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. fixed Check the Milestone for the release in which the fix is or will be available. Language Service Visual Studio Inherited from Visual Studio
Milestone

Comments

@sean-mcmanus
Copy link
Collaborator

Use C++ code

#include <string>
using namespace std::string_literals;

void foo_i(int ii);
void foo_s(std::string aa);

int main()
{
    foo_i(10); // inlay hints work
    foo_s("s"s); // inlay hints don't work
}

Bug: Inlay hints don’t work for the function that takes a string_literal argument – with Debug bits several assertions are thrown.

image

Filed a VS bug at https://developercommunity.visualstudio.com/t/C-IntelliSense-function-inlay-hints-do/10184988 .

@sean-mcmanus sean-mcmanus added bug Language Service Visual Studio Inherited from Visual Studio Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. labels Oct 28, 2022
@sean-mcmanus sean-mcmanus added this to the Tracking milestone Oct 28, 2022
@sean-mcmanus sean-mcmanus modified the milestones: Tracking, 1.14.0 Dec 7, 2022
@sean-mcmanus sean-mcmanus self-assigned this Dec 7, 2022
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Dec 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. fixed Check the Milestone for the release in which the fix is or will be available. Language Service Visual Studio Inherited from Visual Studio
Projects
None yet
Development

No branches or pull requests

1 participant