Locating the workspace module by convention has multiple problems:
+ gopls's view of $TMPDIR might be different from the client
+ there might be multiple views
+ there might be multiple gopls sessions per pid
Instead, assign a temp workspace directory for each workspace folder,
and provide a command to access this information.
Cleaning up all these temp directories was overcomplicated. Instead,
create a temp directory for the gopls server to nest them under, that
can be removed up on server shutdown.
Also fix a bug where the snapshot was not acquired before copying its
Trust: Robert Findley <email@example.com>
Run-TryBot: Robert Findley <firstname.lastname@example.org>
gopls-CI: kokoro <email@example.com>
TryBot-Result: Go Bot <firstname.lastname@example.org>
Reviewed-by: Rebecca Stambler <email@example.com>