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

Move files with intellisense #18085

Closed
sir-marc opened this issue Jan 4, 2017 · 10 comments
Closed

Move files with intellisense #18085

sir-marc opened this issue Jan 4, 2017 · 10 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension javascript JavaScript support issues typescript Typescript support issues

Comments

@sir-marc
Copy link

sir-marc commented Jan 4, 2017

  • VSCode Version: 1.8.0
  • OS Version: Windows 7

Steps to Reproduce:

  1. Move a File into an other folder in project

Is there a way of moving files without having to update dozens of files afterwards manually?
If i rename a file, the editor opens all files linked to that file with a proposed change. Is this possible for moving files, too? microsoft/vscode-tips-and-tricks#34

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Jan 4, 2017
@sandy081
Copy link
Member

sandy081 commented Jan 4, 2017

May I know what kind of project are you using (Javascript, typescript.. ?).. I think renaming a file functionality is done by extension.. can you please also let us know if you have any such extensions. Thanks.

@sir-marc
Copy link
Author

sir-marc commented Jan 4, 2017

I'm working with typescript 2.1.4.
Renaming of files works fine (without extensions). My Question was, if this funcionality also works for moving files.

@sandy081
Copy link
Member

sandy081 commented Jan 4, 2017

@sir-marc I wonder why renaming of files behavior is not in built. I do not see any associated files opens during file rename. Reason I am asking was we do not support this and if it is coming from an Extension you need to ask the extension author about the functionality.

@sir-marc
Copy link
Author

sir-marc commented Jan 4, 2017

Renaming files works fine.
The problem is in moving files. Not renaming them.
I dont use any extensions for either of those.
If I rename a file with f2, it opens all referencing files and changes the import statement and waits for me to save it.
But if i move the file, nothing happens. I would expect to also open all referencing files with a suggested change in the import statement.

@sandy081
Copy link
Member

sandy081 commented Jan 4, 2017

@sir-marc As I said, we do not support renaming of files by opening all referencing files and changing import statement is not in built behavior. Can you please open Extensions view and show us what extensions are installed and running?

@sir-marc
Copy link
Author

sir-marc commented Jan 4, 2017

strange, this works for me just fine. Anyway: my extensions:
Debugger for chrome
Material Theme
TortoiseSVN
TSLint
Typescript Importer (for auto suggesting imports while typing)
vscode-icons

@sir-marc
Copy link
Author

sir-marc commented Jan 4, 2017

oh I think i had something wrong in my mind. It's obviously not working. Stupid me.
Nevertheless those two features would be handy while developing typescript (or other typed languages)

@sandy081
Copy link
Member

sandy081 commented Jan 4, 2017

Can you please disable all extension using the following command and reload VS Code and retry renaming the file.

image

I suspect this behavior is coming from one of the installed extensions (may be Typescript importer).

@dbaeumer dbaeumer added typescript Typescript support issues javascript JavaScript support issues and removed info-needed Issue requires more information from poster labels Jan 16, 2017
@waderyan waderyan assigned mjbvz and unassigned waderyan Jan 23, 2017
@mjbvz mjbvz added the *caused-by-extension Issue identified to be caused by an extension label Feb 4, 2017
@mjbvz
Copy link
Contributor

mjbvz commented Feb 4, 2017

Closing since I suspect this is caused by an extension.

@sir-marc, please try disabling extensions and let us know if you still see any issues.

Automatically updating import paths when a file is moved is tracked by #19439

Thanks

@mjbvz mjbvz closed this as completed Feb 4, 2017
@sir-marc
Copy link
Author

sir-marc commented Feb 4, 2017

it's not an issue, it's a enhancement request :)
It would be nice, if typescript would recognize when I rename a file or when I move it around

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension javascript JavaScript support issues typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

5 participants