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

Automatic convertion '.' to '->' doesn't work #9716

Closed
zhiyiYo opened this issue Aug 11, 2022 · 1 comment
Closed

Automatic convertion '.' to '->' doesn't work #9716

zhiyiYo opened this issue Aug 11, 2022 · 1 comment
Labels
bug duplicate Feature: Auto-complete fixed Check the Milestone for the release in which the fix is or will be available. Language Service verified Bug has been reproduced Works in VS So we'd need to fix it for VS Code to reach parity.
Milestone

Comments

@zhiyiYo
Copy link

zhiyiYo commented Aug 11, 2022

Environment

  • OS and Version: Windows11 22621.382
  • VS Code Version: 1.70.1
  • C/C++ Extension Version: 1.11.5
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
    Automatic convertion '.' to '->' doesn't work in method.

Bug Summary and Steps to Reproduce

As shown in the following figure:
补全

Expected behavior

Automatic convertion '.' to '->' should work.

Code sample and Logs

struct Dog {
    int age;
    Dog(int a) : age(a) {}
};

class Owner {
public:
    void walkDog(Dog *dog) {
        
    }
};


void walkDog(Dog *dog) {

}
@michelleangela michelleangela added bug Language Service verified Bug has been reproduced Feature: Auto-complete Works in VS So we'd need to fix it for VS Code to reach parity. labels Aug 11, 2022
@michelleangela michelleangela added this to the Backlog milestone Aug 11, 2022
@sean-mcmanus
Copy link
Collaborator

This is already fixed in https://github.com/microsoft/vscode-cpptools/releases/tag/v1.12.0, i.e. duplicate of #9599 .

@sean-mcmanus sean-mcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
@sean-mcmanus sean-mcmanus added duplicate fixed Check the Milestone for the release in which the fix is or will be available. labels Aug 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate Feature: Auto-complete fixed Check the Milestone for the release in which the fix is or will be available. Language Service verified Bug has been reproduced Works in VS So we'd need to fix it for VS Code to reach parity.
Projects
None yet
Development

No branches or pull requests

3 participants