godotengine / godotengine/godot-vscode-plugin
Pasting a function under another function does not indent it correcly
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### Godot version
-
### VS Code version
1.80.0
### Godot Tools VS Code extension version
1.3.1
### System information
Windows 10
### Issue description
**Scenario :**
1. Open VSCode with Godot tools 1.3.1 installed
2. Create a .gd file
3. Write a dummy function inside of if. For example :
func fooFunction(): # Line 1
pass # Line 2
4. Select the function's text, and copy it (Ctrl+C)
5. Place cursor on line 3 or on line 4, press Ctrl+V
**Expected(good) :**
```
func fooFunction():
pass
func fooFunction():
pass
```
**Observed (bad) :**
```
func fooFunction():
pass
func fooFunction():
pass
```
### Steps to reproduce
-
Contributor guide
Assessment
This issue has not been assessed yet.