Skip to content

Create declaration/definition does not select the correct range of new inserted text #10160

@michelleangela

Description

@michelleangela

Sample code:

header file

// other.h
class other {
public:
void abc();
void xyz();
void myFunction();
};

source file

// other.cpp
#include "other.h"

void other::abc() {

}

void other::xyz() {

}

Repro steps:

  1. Use sample files with sample code.
  2. Invoke create declaration / definition command on function myFunction().

Result: definition of myFunction() is created in file other.cpp. Extension navigates to file other.cpp but does not select and put cursor on the newly created definition of myFunction().

Expected result: when navigating to the newly created definition or declaration, extension should select the newly inserted text.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions