We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25f778 commit 7182675Copy full SHA for 7182675
gdscript-completion.el
@@ -74,11 +74,13 @@ first."
74
(projectile-project-files project-root))
75
(read-file-name
76
"Find file: "
77
- project-root))))
78
- (insert
79
- (concat "\"res://"
80
- (gdscript-util--get-godot-project-file-path-relative file)
81
- "." (file-name-extension file) "\"")))))
+ project-root)))
+ (resource-path
+ (if has-projectile
+ file
+ (concat (gdscript-util--get-godot-project-file-path-relative file)
82
+ "." (file-name-extension file)))))
83
+ (insert (concat "\"res://" resource-path "\"")))))
84
85
86
(provide 'gdscript-completion)
0 commit comments