Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

feat: unsubscribe providers when queryLSP throws an error#8

Merged
chrismwendt merged 1 commit intomasterfrom
disable-upon-error
Oct 18, 2018
Merged

feat: unsubscribe providers when queryLSP throws an error#8
chrismwendt merged 1 commit intomasterfrom
disable-upon-error

Conversation

@chrismwendt
Copy link
Contributor

I'm planning to support running extensions (e.g. Codecov) on private code even when the repository does not exist on the Sourcegraph instance. Doing so will resolve this issue: https://github.com/sourcegraph/browser-extensions/issues/234#issuecomment-430429015

That means that all extensions will run, including language extensions. Unfortunately, when the repository doesn't exist, every hover will 404 and show up in the hover tooltip, which is pretty annoying.

To avoid so many errors popping up in the hover tooltips, this PR suppresses 404s and other network errors so that they do not show up in tooltips but still show up in the console. Errors returned by the language server will still show up in the hover tooltips.

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.

2 participants