Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
client: set directory in request context
Browse files Browse the repository at this point in the history
  • Loading branch information
stamblerre committed Nov 28, 2018
1 parent 8f4adc7 commit 22843d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ func cmdAutoComplete(c *rpc.Client) {
req.Filename, req.Data, req.Cursor = prepareFilenameDataCursor()
// TODO(rstambler): Client can specify GOOS, GOARCH, etc.
// For now, assume same environment for server and client.
req.Context = &suggest.PackedContext{}
req.Context = &suggest.PackedContext{
Dir: filepath.Dir(req.Filename),
}
req.Source = *g_source
req.Builtin = *g_builtin
req.IgnoreCase = *g_ignore_case
Expand Down

0 comments on commit 22843d8

Please sign in to comment.