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

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

Closed
michelleangela opened this issue Nov 17, 2022 · 0 comments · Fixed by #10177
Closed
Assignees
Labels
bug Feature: Create Declaration or Definition fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Milestone

Comments

@michelleangela
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Create Declaration or Definition fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
None yet
2 participants