Переглянути джерело

Add newline when dropping nodes into editor (#754)

Co-authored-by: k-expon <[email protected]>
KIM JISU 8 місяців тому
батько
коміт
996a7aefe6
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/scene_tools/preview.ts

+ 1 - 1
src/scene_tools/preview.ts

@@ -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`,
 					);
 				}