Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make LSP API available over gRPC / CLI #46

Open
object88 opened this issue Feb 28, 2018 · 1 comment
Open

Make LSP API available over gRPC / CLI #46

object88 opened this issue Feb 28, 2018 · 1 comment

Comments

@object88
Copy link
Owner

There are a large number of potential commands available via the LSP. It might be interesting to also expose these over the CLI. For example:

langd definition /usr/bob/go/src/github.com/bob/projectRobert/robert.go:80:4

This would require scanning through already open projects / workspaces to see if the file is loaded, and attach to that workspace for the duration of the CLI call. Alternately, if that workspace was not already open, should be be opened? Of should that require an explicit call to open? If a workspace gets opened, then scoping becomes problematic; in theory, that workspace would stay open for some time, and if another request comes in at a parent level, that workspace would get overlapped. It might be better to open-and-close workspaces that are only referenced by the CLI?

@object88
Copy link
Owner Author

Perhaps the current working directory for the command can act as the root of the workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant