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

why not using the vscode rename api #13

Open
brandonxiang opened this issue Jun 25, 2023 · 2 comments
Open

why not using the vscode rename api #13

brandonxiang opened this issue Jun 25, 2023 · 2 comments

Comments

@brandonxiang
Copy link

such as

vscode.commands.executeCommand('editor.action.rename', )

because I want to batch rename, also I need to change the imports in the codebase.

@airtonix
Copy link

airtonix commented Oct 26, 2023

it'd be nice if this was possible, but it seems that vscode is like this by design

@brandonxiang because editor.action.rename only starts the rename process (it doesn't accept a destination filepath).

https://github.com/microsoft/vscode/blob/46982792873b62b7ad1099799f7f7f2c6eafde3f/src/vs/editor/contrib/rename/browser/rename.ts#L288

@0x80
Copy link

0x80 commented Jan 12, 2024

That would be so very useful! I inherited a codebase with shitty file naming standards, and I want to change all of it but this extension is currently not an option for this reason.

Does this help maybe?

https://www.eliostruyf.com/devhack-rename-file-vscode-extension/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants