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

Command rename #87853

Closed
softlandia opened this issue Dec 29, 2019 · 8 comments
Closed

Command rename #87853

softlandia opened this issue Dec 29, 2019 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster rename

Comments

@softlandia
Copy link

Issue Type: Feature Request

After renaming (command F2), the cursor changes position.
When you rename several constants, you have to return the cursor to the block of renamed constants

VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.17763

@jrieken jrieken added info-needed Issue requires more information from poster rename labels Dec 30, 2019
@jrieken
Copy link
Member

jrieken commented Dec 30, 2019

It shouldn't and it doesn't in my testing. So, I need reproducible steps that allow me to see what you see

@softlandia
Copy link
Author

video
https://drive.google.com/open?id=13Om0aRugPzL12Nakn0W-7XZr8DYi9n8A
on start rename cursor have position at line 53
after rename cursor at line 61
and if i need rename other constant i need use mouse.
I believe that the cursor should return to the position it was when I clicked

@jrieken
Copy link
Member

jrieken commented Jan 2, 2020

Please paste the code here

@softlandia
Copy link
Author

softlandia commented Jan 4, 2020 via email

@softlandia
Copy link
Author

softlandia commented Jan 4, 2020 via email

@jrieken
Copy link
Member

jrieken commented Jan 6, 2020

Hm, I get these messages.. Is there any special setup that's not part of the go-dev-container?

Rename failed: gorename: can't find package containing /workspaces/vscode-dev-containers/containers/go/cpd/win1251.go 
Rename failed: gorename: can't find package containing /workspaces/vscode-dev-containers/containers/go/cpd/win1251.go 

@softlandia
Copy link
Author

Yes, I receive such messages very often... I tried to understand in what cases this message occurs, and in which not. I do not understand yet.

Extentions installed in VSC :
Go 0.12.0
markdownlint 0.33.0
Numbered bookmarks 6.2.1
Todo Tree 0.0.162
All other installed auto.
How can i look other special parts?

@softlandia
Copy link
Author

I understand.
If package in GO path then F2 work, else not work

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster rename
Projects
None yet
Development

No branches or pull requests

3 participants
@jrieken @softlandia and others