Changing any static functions/variables requires a full restart of Godot
Miltage opened this issue · comments
Godot version
4.2.1.stable
VS Code version
1.87.2
Godot Tools VS Code extension version
2.0.0
System information
Windows 10
Issue description
Changing any static variables, functions, enums will show an error until you restart both VSCode and Godot.
Example:
This function definitely exists, because I can compile and run this function in game without issue. When I restart Godot this error disappears.
Steps to reproduce
- Create a static variable or function in a class
- Try to access that variable or function from another class
This is a problem with Godot itself and is not related to this extension.
Ah, okay. I don't recall having this issue myself before using the extension, but I'll close it.
Before you were using the extension, you weren't getting the diagnostics/warnings from Godot's Language Server. VSCode/this extension are just displaying the warnings, it doesn't generate them.
The reason you're getting these warnings is because the Language Server is confused.