godotengine / godotengine/godot-vscode-plugin

When using @export or other GDScript annotations in scripts, stopping debugging does not close the game window.

Open
#931 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

### Godot version

v4.5.stable.mono.official [876b29033]

### VS Code version

1.104.26450(VSCodium)

### Godot Tools VS Code extension version

2.5.1

### System information

Fedora 42

### Issue description

When scripts contain annotations such as @export, @onready, etc., after starting debugging with F5 and then stopping debugging by Shift+F5 or stop button, the game window does not close automatically.
And after this occurs, attempts to close the window by clicking the title bar's close button, closing VSCode, or closing the editor are ineffective. The only solution is to forcibly terminate the window process.

Directly closing the game window (instead of using Stop Debugging in VSCode) does not exhibit this problem.

### Steps to reproduce

Create any new scene in the Godot editor and attach a GDScript to it

Use @export or @onready to declare some variables in the script, for example:

``` gdscript
extends Node

@export var id: int = 0
```
Create a default debug configuration in VSCodium, press F5 to run, and after the game window appears, press Shift+F5 to stop debugging

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.