Skip to content

Commit c3fcb56

Browse files
committed
use getPaths instead of getPath
to close #12
1 parent 6b68396 commit c3fcb56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir-cmd-view.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class ElixirCmdView extends View
176176
@pre "PATH: #{escape process.env.PATH}"
177177

178178
getCwd: ->
179-
atom.project.getPath()
179+
atom.project.getPaths()[0]
180180

181181
stop: ->
182182
# Kill existing process if available

lib/elixir-cmd.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports =
55
elixirCmdView: null
66

77
activate: (state) ->
8-
return unless fs.existsSync("#{atom.project.getPath()}/mix.exs")
8+
return unless fs.existsSync("#{atom.project.getPaths()[0]}/mix.exs")
99
@elixirCmdView = new ElixirCmdView(state.elixirCmdViewState)
1010
atom.workspaceView.on 'core:cancel core:close', (event) =>
1111
@elixirCmdView?.close()

0 commit comments

Comments
 (0)