vscode-extension-tester
vscode-extension-tester copied to clipboard
[🚀 Request] How to get the hover help of a selected text in text editor
Describe the request
Hi,
I'm having trouble retrieving the text/info that appears when I hover over a part of the code in the text editor (ie. red circled part in screenshot), and would appreciate any help. How can I approach this? I've tried getting the CodeLens, then the Tooltip, but it appears to be undefined. Please see steps to reproduce for more details. Thanks!
Usage
Steps to reproduce
const editor = new TextEditor();
const editor1 = await new EditorView().openEditor("example.c");
await editor.selectText("text");
const lens = await editor.getCodeLens("text");
await lens?.click();
const text = await lens?.getText();
const tooltip = await lens?.getTooltip();
Operating System
Ubuntu 22.04
Visual Studio Code
1.85.0
vscode-extension-tester
7.0.0
NodeJS
18.15.0
Hello, this hover get text or click on quick actions is still not implemented at the moment 🙁
Related to #429
Related to #1248