Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

After renaming a file from CamelCase to lowercase, it's still deployed with CamelCase name (SFTP) #174

Open
kerabromsmu opened this issue Mar 30, 2021 · 0 comments

Comments

@kerabromsmu
Copy link

Description

I named a file ObjectAction.js and deployed it over SFTP. After that, I renamed it to objectaction.js. When I deploy it after that, it's still deployed as ObjectAction.js, and the server side scripts cannot import it because of this. Restarting VSCode doesn't help.

Actual behavior

The file renamed from CamelCase to lowercase after deployment, still deploys as CamelCase.

Expected behavior

The renamed file should be deployed with exactly the new name, even if it's just a character case change.

Steps to reproduce

  1. Create a file in VSCode with a CamelCase name (e.g. "ObjectAction.js")
  2. Deploy it with Ctrl+Alt+F over SFTP
  3. Rename it to the same name, but lowercase (e.g. "objectaction.js")
  4. Deploy it again
  5. Check the server side to see if the file is deployed with the new name

Logs

this is the log when I deploy the file with the lowercase name:

[17:41:32] 🚀 Deploying file '/scripts/ObjectAction.js' to '/scripts (Hetzner)' ... ✅ [378 ms]

Your environment

  • Operating system: Windows 10
  • Visual Studio Code version: 1.54.3
  • Extension version: v0.89.0

Additional comments

Note: when I deploy the whole folder, the file deploys with the correct name. The bug only happens if I deploy the single file.

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

No branches or pull requests

1 participant