Skip to content

VS Code: Crash when using LSP completion from any script not attached to a node (autoload or new script) #51923

Closed
@JonathanTron

Description

Godot version

3.3.3

System information

MacOS 11.5.2, Windows 10

Issue description

When using VSCode with Godot plugin, completion in an autoloaded script (or a script not attached to any node yet) make the Godot Editor crash.

I found it to be the case since this commit: 520fa45

Steps to reproduce

Open project, then open game_state.gd in VSCode with the godot-tools (v1.1.2) installed, start type anything and invoke completion.

Godot editor crashes.

Minimal reproduction project

DebugLSPCompletion.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions