vsc-base icon indicating copy to clipboard operation
vsc-base copied to clipboard

Doesn't work anymore?

Open 28raining opened this issue 3 years ago • 15 comments

I've used it before. But now it doesn't seem to work. The preview remains empty. I have the latest version of everything.

28raining avatar May 26 '21 19:05 28raining

I met the same issue.

versions:v2.1.1

vscode:

Version: 1.56.2 Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-12T16:45:26.313Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Linux x64 5.6.11-050611-generic

wangdeer avatar May 28 '21 02:05 wangdeer

Which module are we talking about ?

This is a mono repository containing:

  • vsc-base
  • vsc-script
  • vsc-scaffolding
  • vsc-rename-files
  • vsc-organize-imports

alfnielsen avatar May 28 '21 04:05 alfnielsen

Which module are we talking about ?

This is a mono repository containing:

  • vsc-base
  • vsc-script
  • vsc-scaffolding
  • vsc-rename-files
  • vsc-organize-imports

@alfnielsen

vsc-rename-files

image

wangdeer avatar May 29 '21 03:05 wangdeer

vsc-organize-imports doesn't work for me. The setting "vsc-organize-imports" in settings.json doesn't seem to be recognized.

patik avatar Jun 01 '21 10:06 patik

Having the same problem, vsc-rename-files is not working for me anymore, the results in the preview remain empty.

darkyelox avatar Jun 10 '21 16:06 darkyelox

+1

TheCelebrimbor avatar Jul 29 '21 00:07 TheCelebrimbor

+1

mosesoak avatar Aug 10 '21 17:08 mosesoak

Hey people, I have looked into the problem and unfortunately something has change in the way VSCode sends data to the Webview. I was not able to find any solution right now (And I don't have time at the moment to do a lot more investigation)

A little tech note, if anyone wanna take a look at it: It (the extension) sends data with no errors but the windows.addEventListener("message", ... ) in the webview code, don't react at all. (The webview are able to send data back to the extension!) It seems that the change is that webview are now made with two layers of iframes (An iframe with an iframe within it), so I have a little hard time to see how the outer iframe can pass the event message to the inner (But again I haven't had a lot of time to investigate) - Maybe there are some new permission that needs to be added or something..

At some point I will look at it again, but I have to much other work and project right now.

alfnielsen avatar Aug 11 '21 07:08 alfnielsen

+1

vnchaitanya avatar Nov 01 '21 12:11 vnchaitanya

I can understand you. For those who need a fast alternative: https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension.

teneko avatar Nov 25 '21 10:11 teneko

Same

MetalManeMc avatar Aug 05 '22 14:08 MetalManeMc

Version 1 of vsc-rename-files seems to work just fine. Although you can't see the results before executing. Just make sure to commit before doing so 😅

jczacharia avatar Sep 01 '22 19:09 jczacharia

The thing is there's no button to execute...

MetalManeMc avatar Sep 02 '22 17:09 MetalManeMc

I can understand you. For those who need a fast alternative: https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension.

This one makes you manually select files from the file explorer which is not suitable when you have a large project with a lot of similar files in different subfolders.

alexeychikk avatar Jul 29 '23 14:07 alexeychikk

This extension https://marketplace.visualstudio.com/items?itemName=justerest.multi-replace does a great job at renaming file extensions and replacing their references in code. For example in my project it easily renamed all .styles.css files to .module.scss and also replaced all text occurrences of .styles.css in code.

alexeychikk avatar Jul 29 '23 14:07 alexeychikk