I'm developing vscode extension and I want to achieve the same effect like 'Breakpoint' msg after mouse hovering: breakpoint hover msg in vscode
I tried few things and nothing gave me correct result. Now I have:
vscode.commands.registerTextEditorCommand('startextension', () => {
let decorationsOptions : vscode.DecorationOptions[] =[];
decorationsOptions.push({hoverMessage: 'Works', range: new vscode.Range(3, 0, 3, 0)});
vscode.window.activeTextEditor.setDecorations(vscode.window.createTextEditorDecorationType({}), decorationsOptions);
});
Unfortunately after launching extension and hovering over selected line I get nothing. This solution works for example for displaying custom icon, but not for hovering.
Do I have to register special hover provider to see my "Works" msg?