lsp/server: force-load all packages for completions within embedded files
Completions and Hover for embedded files should both behave the same
way: the embedded file is "upstream", just like an imported package, but
unlike an imported package, completions and hover are calculated by
looking at downstream - i.e. where the embedded file is actually
embedded.
Therefore, completions should also force-load all packages within the
current module for non-cue files, to identify where the file might be
embedded.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I86dfd965baf564f32da01599c79a57deed88b83d
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1231012
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>