mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Use fs.resolveOnLoadPath() to find ctags executable
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
Point = require 'point'
|
||||
$ = require 'jquery'
|
||||
BufferedProcess = require 'buffered-process'
|
||||
fs = require 'fs-utils'
|
||||
|
||||
module.exports =
|
||||
class TagGenerator
|
||||
@@ -17,7 +18,7 @@ class TagGenerator
|
||||
generate: ->
|
||||
deferred = $.Deferred()
|
||||
tags = []
|
||||
command = require.resolve('ctags')
|
||||
command = fs.resolveOnLoadPath('ctags')
|
||||
args = ['--fields=+KS', '-nf', '-', @path]
|
||||
stdout = (lines) =>
|
||||
for line in lines.split('\n')
|
||||
|
||||
Reference in New Issue
Block a user