Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Use lsp-client #36

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Use lsp-client #36

wants to merge 8 commits into from

Conversation

chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Mar 5, 2019

This feature-flags @sourcegraph/lsp-client based on the lspclient global/org/user setting:

{
  // ...
  "lspclient": true,
  // ...
}

You have to be running sourcegraph/lang-go:insiders@sha256:9b2eb14e6acdd41c3e7fe312b79a72200efa4cac096eb13e2ecd86ee67821a62 (or newer) because lsp-client is not compatible with older versions of go-langserver.

This depends on a solution to sourcegraph/lsp-client#41 (e.g. sourcegraph/lsp-client#42).

Resolves #28

@chrismwendt chrismwendt requested a review from lguychard May 29, 2019 20:52
})(ctx)
}

async function activatePreciseUsingLspClient(ctx: sourcegraph.ExtensionContext): Promise<void> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function activatePreciseUsingLspClient is really the only new piece in this PR. The other changes were due to restructuring the code.

doc,
pos,
sendRequest: ({ rootURI, requestType, request, useCache }) =>
client.withConnection(rootURI, conn => conn.sendRequest(requestType, request)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the part that gets into an infinite loop without sourcegraph/lsp-client#42

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

Successfully merging this pull request may close these issues.

Use @sourcegraph/lsp-client
2 participants