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