lsp/eval: rework transitioning through imports
There was duplication in the existing code: import specs would be
processed both during their own evaluation, and when path evaluation led
to an imported package.
This CL avoids that duplication, leading to simplification of path
traversal code (`expandNavigables`), and greater consistency.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I806f834a51031ddc746d01cb90d726a188bcbc57
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1229417
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>