godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

`class_name` claims custom class hides global script class #650

Open lonegamedev opened 2 months ago

lonegamedev commented 2 months ago

Godot version

v4.2.1.stable.arch_linux

VS Code version

1.88.1

Godot Tools VS Code extension version

2.0.0

System information

ArchLinux

Issue description

This gets reported as hiding global class.

class_name GodotSucks

Steps to reproduce

Create script class, assign class_name.

DaelonSuzuka commented 2 months ago

Yes, this is a known issue, it's been around forever. It's not caused by or influenced by this extension. It's a bug in the Language Server, which is part of the Godot Editor.

lonegamedev commented 2 months ago

Seems like problem is related to: https://github.com/godotengine/godot-vscode-plugin/issues/649#issuecomment-2066041382