Skip to content

Commit

Permalink
You have to give gocode the full file name of the current file, or it…
Browse files Browse the repository at this point in the history
… doesn't pick up declarations in other files in the same package.
  • Loading branch information
dave committed Sep 11, 2011
1 parent 571167d commit f8932f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gscomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def on_query_completions(self, view, prefix, locations):
# gives us everything then st2 can pick the matches for us
offset = pos - len(prefix)
src = view.substr(sublime.Region(0, view.size()))
fn = basename(view.file_name())
fn = view.file_name()
cl = self.complete(fn, offset, src)

if scopes[-1] == 'source.go':
Expand Down

0 comments on commit f8932f8

Please sign in to comment.