mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Display results from done callback
This commit is contained in:
@@ -73,13 +73,15 @@ class OutlineView extends SelectList
|
||||
for line in lines
|
||||
tag = @parseTagLine(line)
|
||||
tags.push(tag) if tag
|
||||
if tags.length > 0
|
||||
@setArray(tags)
|
||||
@attach()
|
||||
|
||||
path = @rootView.getActiveEditor().getPath()
|
||||
command = "ctags --fields=+KS -nf - #{path}"
|
||||
deferred = ChildProcess.exec command, options
|
||||
deferred.done (stdout, stderr) =>
|
||||
options.stdout(stdout)
|
||||
if tags.length > 0
|
||||
@setArray(tags)
|
||||
@attach()
|
||||
|
||||
confirmed : ({row, column, name}) ->
|
||||
@cancel()
|
||||
|
||||
Reference in New Issue
Block a user