mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
Add newline when dropping nodes into editor (#754)
Co-authored-by: k-expon <kimexpon@pm.me>
This commit is contained in:
@@ -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`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user