File tree 1 file changed +9
-2
lines changed
Filter options
1 file changed +9
-2
lines changed
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ When FILENAME is nil or not a real file, returns nil."
108
108
(search-forward-regexp regexp)
109
109
(match-string 1 ))))
110
110
111
+ (defun psci/--get-psc-package-sources! ()
112
+ (when (file-exists-p " psc-package.json" )
113
+ (split-string (shell-command-to-string " psc-package sources" ))))
114
+
111
115
; ; public functions
112
116
113
117
;;;### autoload
@@ -128,8 +132,11 @@ Relies on .psci file for determining the project's root folder."
128
132
; ; create the comint process if there is no buffer.
129
133
(unless buffer
130
134
(setq default-directory (psci/--project-root!))
131
- (apply 'make-comint-in-buffer psci/buffer-name buffer
132
- psci-program nil psci/arguments)
135
+ (let ((full-arg-list (-if-let (psc-package-sources (psci/--get-psc-package-sources!))
136
+ (append psci/arguments psc-package-sources)
137
+ psci/arguments)))
138
+ (apply 'make-comint-in-buffer psci/buffer-name buffer
139
+ psci-program nil full-arg-list))
133
140
(psci-mode)))
134
141
(psci/log " No .psci file so we cannot determine the root project folder. Please, add one." )))
135
142
You can’t perform that action at this time.
0 commit comments