Skip to content

Autocomplete deletes code on the right side of the line #10553

@dortamiguel

Description

@dortamiguel

Environment

  • OS and Version: macOS 13.2.1
  • VS Code Version: 1.75.1
  • C/C++ Extension Version: 1.14.3

Bug Summary and Steps to Reproduce

Bug Summary:

When I autocomplete a param it deletes the content on the right side of the line

c++_autocomplete.mp4

Steps to reproduce:

  1. Copy this code
struct Something {
    int something;
};
struct Foo {
    Something first, second;
};

Foo foo;
foo.first.something;
  1. delete first. and place the cursor just after foo
  2. command + space or ctrl + space (in windows) to toggle the autocomplete menu
  3. select option (see video above)

Expected behavior:

I will like the behaviour I usually get when working with typescript, where when I call the autocomplete it respects what is written on the right of the line (see video below)

js_autocomplete.mp4

Configuration and Logs

{
  "C_Cpp.default.cppStandard": "c++20"
}

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions