Skip to content

Commit

Permalink
Add newline when dropping nodes into editor (#754)
Browse files Browse the repository at this point in the history
Co-authored-by: k-expon <[email protected]>
  • Loading branch information
k-expon and k-expon authored Jan 4, 2025
1 parent 2e91178 commit 996a7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene_tools/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
);
}

Expand Down

0 comments on commit 996a7ae

Please sign in to comment.