-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Go to Symbol should position text cursor on name of target #12270
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
Comments
From @rebornix on October 31, 2016 17:8 I found it share the same experience with Go To Definition. |
From @dbaeumer on November 1, 2016 15:11 We simply use the position we get from the tsserver. So need to check what they return (using tracing option) |
This issue was moved to #12000 |
@dbaeumer I may have migrated that issue too early. Can you clarify what you mean by
Is this on our end or TypeScript's? |
From @dbaeumer on November 4, 2016 11:18 This is on our end. I would do the following: enable tsserver tracing in VS Code's setting and do goto definition. If the trace shows that TS gives us the position of the visibility keyword (public, private, ...) then we should move this it the TS team. If not then it looks like a bug on our end. |
Ok. This fell through the cracks but getting to it now. I tested with this code: class Foo {
public x;
}
var foo = new Foo();
foo.x; Here is the output I see from TS. From reading this it looks like TS Server is providing the offset at the location of the |
From @dbaeumer on November 15, 2016 1:3 Yes the reported offset is at the beginning of public. I recommend to ask the TS team to change this. |
From @chrmarti on October 31, 2016 14:48
Steps to Reproduce:
This breaks the flow of keyboard navigation for actions like Find All References, Rename Symbol, etc., because the user now has to navigate the cursor to the symbol's name first.
Copied from original issue: microsoft/vscode#14759
The text was updated successfully, but these errors were encountered: