Add newline when dropping nodes into editor (#754)

Co-authored-by: k-expon <kimexpon@pm.me>
This commit is contained in:
KIM JISU
2025-01-04 11:02:58 +09:00
committed by GitHub
parent 2e9117870d
commit 996a7aefe6

View File

@@ -131,7 +131,7 @@ export class ScenePreviewProvider
// We assume that if the user is dropping a node in an empty line, they are at the top of
// the script and want to declare an onready variable
return new vscode.DocumentDropEdit(
`@onready var ${node_name_to_snake(label)}: ${className} = ${qualifiedPath}`,
`@onready var ${node_name_to_snake(label)}: ${className} = ${qualifiedPath}\n`,
);
}