Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Conversation

@sqs
Copy link
Member

@sqs sqs commented Mar 14, 2019

registerImplementationProvider is deprecated and is being removed in 3.2 (see https://github.com/sourcegraph/sourcegraph/pull/1697). This uses the new registerLocationProvider.

(See the note on backcompat for why it needs to also keep the call to registerImplementationProvider for now.)

Related to (but does not depend on) https://github.com/sourcegraph/sourcegraph/pull/2733

sqs added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Mar 16, 2019
…2733)

Previously, a TypeScript cast `as PanelViewWithComponent` resulted in panel views (that used a custom location provider registered with `registerLocationProvider`) having an incorrectly typed `locationProvider` value. This meant that using a panel view with a custom location provider would throw a JavaScript error.


Depends on sourcegraph/sourcegraph#1697

Related:
- sourcegraph/sourcegraph-go#47
- sourcegraph/sourcegraph-typescript#132
sqs added a commit to sourcegraph/sourcegraph-go that referenced this pull request Mar 16, 2019
Previously, the call to `registerLocationProvider('id', ...` was a noop. The location provider was not actually used anywhere. It needs to be added to a panel to be shown.

- Depends on sourcegraph/sourcegraph#2733
- Depends on #46 

![goifaceimpls](https://user-images.githubusercontent.com/1976/54329595-86957780-45cf-11e9-91fe-17f0b2392290.png)

Unlike for TypeScript (see note in sourcegraph/sourcegraph-typescript#132), Go ifaces/impls were already broken, so this should be merged immediately even though sourcegraph/sourcegraph#2733 is not yet merged and released.
…lementationProvider

`registerImplementationProvider` is deprecated and is being removed in 3.2 (see sourcegraph/sourcegraph#1697). This uses the new registerLocationProvider.
@sqs sqs merged commit 3c4eb2b into master Mar 16, 2019
@sqs sqs deleted the impl-provider branch March 16, 2019 06:24
sqs added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Mar 16, 2019
…2733)

Previously, a TypeScript cast `as PanelViewWithComponent` resulted in panel views (that used a custom location provider registered with `registerLocationProvider`) having an incorrectly typed `locationProvider` value. This meant that using a panel view with a custom location provider would throw a JavaScript error.


Depends on sourcegraph/sourcegraph#1697

Related:
- sourcegraph/sourcegraph-go#47
- sourcegraph/sourcegraph-typescript#132
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.

3 participants