Harmless-looking extension causes def/ref hover buttons to not show
Created by: sqs
The culprit behind https://github.com/sourcegraph/sourcegraph/issues/10372 is the https://sourcegraph.com/extensions/sqs/word-count dummy extension I had enabled. It consists of:
import * as sourcegraph from "sourcegraph";
export function activate(): void {
const panelView = sourcegraph.app.createPanelView("wordCount.panel");
panelView.title = "Word count";
panelView.content = "Open a file to see the word count.";
sourcegraph.workspace.onDidOpenTextDocument.subscribe(doc => {
const numWords = doc.text.split(/\b/).length;
panelView.content = `**Word count:** ${numWords}`;
});
}
Code at https://sourcegraph.com/github.com/sqs/sourcegraph-word-count.
For some reason, with this extension enabled, #10372 (closed) occurs. When I disable it, the hover buttons show up again. I believe this problem started happening around 10 days ago, so it may have been caused by some other change.
I've disabled the extension permanently for me, so I'm not blocked on this.