Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a hidden 'lsp' command as a precursor to landing more LSP functionality. The CUE LSP was initially made available via cmd/cuepls, but making it an "in built" part of cmd/cue makes things easier for the end user. And making the switch now ahead of the initial experimental version that will land in v0.11.0 helps to avoid breakage in vscode-cue and other editor plugins that need to know what command to run to start the LSP server. FWIW this adds ~20% to the binary size of cmd/cue for now. Note that despite the fact that subsequent changes will add more functionality to 'cue lsp', they are likely to remove a significant amount of cruft that was left over from the inherited cuepls code base. Hence subsequent changes may actually reduce the binary size, causing this initial increase to be less pronounced. The benefit of having a single binary vs multiple is considered more significant than the slight (temporary) cost in binary size. Signed-off-by: Paul Jolly <paul@myitcv.io> Change-Id: I66f4d835a96382b93c1584779946ef3567c51aae Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1203289 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information