-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Bug Report
Copy & Paste messes up formatting and creates syntax errors.
1. Minimal reproduce step
Open an editor with the following kcl code:
# Copy everything between '""': "This is a simple string"
foo = "markThisThenPaste"
# Copy everything between '""': "myNewKey"
markThisThenPaste = ""
- copy the "This is a simple string" (without quotes) with Ctrl + C
- mark the first
markThisThenPaste
by double-clicking it (selects the string without quotes) - Paste with Ctrl + V
- Do the same for "myNewKey" and the second "markThisThenPaste"
2. What did I expect to see?
It should just paste.
3. What did I see instead?
Formatting is messed up and syntax errors are created.

4. Versions
Version of kcl-vscode extension: 0.2.2
$ kcl --version
kcl version 0.11.2
$ kcl-language-server --version
kcl-language-server Version: 0.11.2-c020ab3eb4b9179219d6837a57f5d323
Platform: x86_64-unknown-linux-gnu
GitCommit: 48c6244163dedf2d10fc7cdb1545b7afba0168e4
OS: Ubuntu
Metadata
Metadata
Assignees
Labels
No labels