Skip to content
This repository was 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

@kerabromsmu

Description

@kerabromsmu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions