title: how to import vscode path
body: <p>I am receiving the following error from vscode when i try to edit a go file:</p>
  <p>&quot;Error loading workspace: You are outside of a module and outside of $GOPATH/src. If you are using modules, please open your editor to a directory in your module. If you believe this warning is incorrect, please file an issue: <a href="https://github.com/golang/go/issues/new.%22" rel="noreferrer">https://github.com/golang/go/issues/new.&quot;</a></p>
  <p>My go path is set as follows:
  GOPATH=C:\Users\myusername\go</p>
  <p>I have vscode and go working together just fine on other machines... but i cant figure out what is wrong here.</p>
  <p>I am still new to go so i am a little confused as to what the point of the GOPATH is.</p>
  <p>from the go docs its says: &quot;The GOPATH environment variable specifies the location of your workspace&quot;</p>
  <p>and the for the definition of a workspace the docs say: &quot;A workspace is a directory hierarchy with two directories at its root: &quot;</p>
  <p>so from what the docs are saying and what vscode is complaining about is that i have my code outside of the path &quot;C:\Users\myusername\go&quot;...</p>
  <p>obviously go doesn't expect me to do all my work in the location &quot;C:\Users\myusername\go&quot; on my machine.</p>
  <p>so what is it complaining about?</p>
  <p>here is the output of my &quot;gopls -rpc.trace -v check go_practice.go&quot; command:</p>
  <pre><code>2021/04/21 16:05:23 Info:2021/04/21 16:05:23 go env for C:\projects\go_practice
  (root C:\projects\go_practice)
  (go version go version go1.16.3 windows/amd64)
  (valid build configuration = false)
  (build flags: [])
  GOROOT=C:\Program Files\Go
  GOSUMDB=sum.golang.org
  GOFLAGS=
  GOINSECURE=
  GOPROXY=https://proxy.golang.org,direct
  GO111MODULE=
  GOCACHE=C:\Users\username\AppData\Local\go-build
  GONOPROXY=
  GOMOD=NUL
  GOPRIVATE=
  GOMODCACHE=C:\Users\username\go\pkg\mod
  GONOSUMDB=
  GOPATH=C:\Users\username\go
  </code></pre>