mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-05 22:10:05 +03:00
Fix file path completion when projectile is used
When projectile is being used, `projectile-project-files' already returns file paths relative to the project root directory.
This commit is contained in:
@@ -74,11 +74,13 @@ first."
|
||||
(projectile-project-files project-root))
|
||||
(read-file-name
|
||||
"Find file: "
|
||||
project-root))))
|
||||
(insert
|
||||
(concat "\"res://"
|
||||
(gdscript-util--get-godot-project-file-path-relative file)
|
||||
"." (file-name-extension file) "\"")))))
|
||||
project-root)))
|
||||
(resource-path
|
||||
(if has-projectile
|
||||
file
|
||||
(concat (gdscript-util--get-godot-project-file-path-relative file)
|
||||
"." (file-name-extension file)))))
|
||||
(insert (concat "\"res://" resource-path "\"")))))
|
||||
|
||||
|
||||
(provide 'gdscript-completion)
|
||||
|
||||
Reference in New Issue
Block a user