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

Commit 22843d8

Browse files
committed
client: set directory in request context
1 parent 8f4adc7 commit 22843d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ func cmdAutoComplete(c *rpc.Client) {
125125
req.Filename, req.Data, req.Cursor = prepareFilenameDataCursor()
126126
// TODO(rstambler): Client can specify GOOS, GOARCH, etc.
127127
// For now, assume same environment for server and client.
128-
req.Context = &suggest.PackedContext{}
128+
req.Context = &suggest.PackedContext{
129+
Dir: filepath.Dir(req.Filename),
130+
}
129131
req.Source = *g_source
130132
req.Builtin = *g_builtin
131133
req.IgnoreCase = *g_ignore_case

0 commit comments

Comments
 (0)