vscode-extension-tester icon indicating copy to clipboard operation
vscode-extension-tester copied to clipboard

[🚀 Request] How to get the hover help of a selected text in text editor

Open rytts opened this issue 11 months ago • 2 comments

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! MicrosoftTeams-image

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

rytts avatar Feb 26 '24 18:02 rytts

Hello, this hover get text or click on quick actions is still not implemented at the moment 🙁

Related to #429

djelinek avatar Mar 20 '24 13:03 djelinek

Related to #1248

djelinek avatar Apr 25 '24 14:04 djelinek