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:
parent
08bd53a4b4
commit
aa71c3f324
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue