Open rcorre opened 2 years ago
Godot 4 is not affected either. This seems specific to 3.5.
I suspect the "empty text" issue is the same as https://github.com/godotengine/godot/issues/64666, but I'm not sure why it is offering completions from other classes.
Godot 4 is not affected either. This seems specific to 3.5.
This should be closed or moved to the 3.x milestone then.
The unrelated suggestions are likely cause by the smart resolve lsp feature which can be turned off in the editor settings.
This is caused by the lsp falling back to the smart resolve feature for autocompletion (this should not happen). And I'm able to get this behaviour in 4.x as well.
Godot version
3.5.stable
System information
Linux 5.19.1-arch2-1
Issue description
After typing "var", the LSP seems to offer completions from other class variables, which then insert empty text when you select them.
I have a script that looks like this:
I'm now editing a script like this:
Godot 3.4 does not offer any completions at the cursor. Godot 3.5 offers "turns_per_day". I'm using neovim's builtin LSP client with https://github.com/neovim/nvim-lspconfig.
35.log 34.log
I see that 3.5, but not 3.4, is returning this entry:
I doubt this should be returned (completing a variable name based on a variable name from another script doesn't make much sense), and insertText shouldn't be empty.
Steps to reproduce
Minimal reproduction project
example.zip