internal/lsp: set env to os.Environ to start

Change-Id: Ia3952f76918957eba46f8ba2c616f14f424ff4b3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/179221
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Rebecca Stambler 2019-05-28 18:13:06 -04:00
parent 08bd53a4b4
commit aa71c3f324
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ package cache
import (
"context"
"fmt"
"os"
"strings"
"sync"
@ -56,6 +57,7 @@ func (s *session) NewView(name string, folder span.URI) source.View {
backgroundCtx: backgroundCtx,
cancel: cancel,
name: name,
env: os.Environ(),
folder: folder,
filesByURI: make(map[span.URI]viewFile),
filesByBase: make(map[string][]viewFile),