Hover provider document selector ignoring Dockerfiles if at root of repository
Created by: ryan-blunden
- Sourcegraph version: 25190_2018-12-10_fea4018 (25190_2018-12-10_fea4018)
- Platform information: macOS Mojave, Chrome 70.0.3538.110
Steps to reproduce:
Expected behavior:
This code should have produced hovers on all three repositories but instead, only worked on one.
import * as sourcegraph from 'sourcegraph'
export function activate(): void {
sourcegraph.languages.registerHoverProvider([{language: 'dockerfile'}], {
provideHover: () => ({ contents: { value: 'Hello world from WIP: Dockerfile Hover! 🎉🎉🎉' } })
})
}
These repositories don't show hovers (my guess is because the Dockerfile is at the root of the repository)
- https://sourcegraph.com/github.com/sourcegraph/lang-typescript/-/blob/Dockerfile
- https://sourcegraph.com/github.com/sourcegraph/gddo/-/blob/Dockerfile
This one does: