Skip to content
Snippets Groups Projects
Closed Hover provider document selector ignoring Dockerfiles if at root of repository
  • View options
  • Hover provider document selector ignoring Dockerfiles if at root of repository

  • View options
  • Closed Issue created by Warren Gifford

    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:

    dockersourcegraphextensionhoverbug

    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)

    This one does:

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first