godotengine / godotengine/godot-vscode-plugin
When moving code from class A to class B that extends A the server shows duplicate function error.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
When refactoring code, it seems like something are not getting picked up when moved from one file to another. It will cause an error saying that the moved function is defined in two places.
Maybe add the ability to restart or refresh the language server without having to restart the editor, or have the plugin pick up these changes.
```python
# BaseClass.gd
extends Node2D
class_name BaseClass
func _read():
_a()
func _a():
pass
```
```python
# BaseClass.gd
extends Node2D
class_name BaseClass
# Base class functions
# ChildClassA.gd
extends BaseClass
class_name ChildClassA
func _read():
_a()
func _a():
pass
```
Contributor guide
Assessment
This issue has not been assessed yet.