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

Copy/pasting a module corrupts the first line of the file #298

Open
harmboschloo opened this issue Jul 7, 2022 · 0 comments
Open

Copy/pasting a module corrupts the first line of the file #298

harmboschloo opened this issue Jul 7, 2022 · 0 comments

Comments

@harmboschloo
Copy link

Expected Behavior

When copy/pasting a module the first line of the file should be unchanged or the module name should be updated to the new name of the file

Current Behavior

The first line of the file gets corrupted. For instance copy/pasting A.elm creates A copy.elm with the first line becoming:

module A%20copy exposing (..)module A exposing (main)

Possible Solution

Don't change a module when copy/pasting, or insert the new module name without corrupting the file.

Steps to Reproduce (for bugs)

  1. Create a module A.elm
  2. Copy/Paste the file.

Context

Your Environment

  • Version used: 2.4.1
  • Editor name and version (e.g. VSCode 1.36.1): VSCode 1.68.1
  • Environment name and version (e.g. node.js 5.4): node.js 16.15.1
  • Operating System and version: Windows 11 Home
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

1 participant