Replies: 5 comments
-
You can get the hover to appear with Cmd + K, Cmd + I on macOS. Not sure what the keybindings are on Windows and Linux but you can figure it out by searching for it with F1. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't think I fully understand. I suggest you create a reproducible piece of code that can be run in the playground so that people can clearly see what your intent and use case is. |
Beta Was this translation helpful? Give feedback.
-
@rcjsuen I deleted my previous comment, and explain my intent here. I have actually an Excel add-in called Formula Editor. Normally, it is run inside Excel, but we could still get the idea outside: https://v3.10studio.tech/#/formula-editor-addin. You could turn on the toggle and then copy the formula (eg, The editor consists of a Monaco Editor on top of a language server of Excel formulas. We have already implemented a hinting feature, that's why Now, we would like to implement another feature, it is "evaluation". A user selects a part of the formula (eg, So my question is by which APIs we implement this "evaluation" feature. If we use hoverprovider and Additionally, I would like this shortcut to be How would you design and implement these features? |
Beta Was this translation helpful? Give feedback.
-
I don't think what you're describing is easily achievable with the APIs. I imagine you'd have to create a new command that pops up a window yourself. |
Beta Was this translation helpful? Give feedback.
-
Ah, that's not good news. To create a shortcut that pops up a window that supports html, are there any samples or references to follow? |
Beta Was this translation helpful? Give feedback.
-
Context
Description
I would like to add a feature in my editor: users select a text, and click on a keyboard shortcut, then a window with content by html (eg, a table like this) appears next to the selection, in the end users move the mouse or use another keyboard shortcut to make the window disappear.
I understand that we could use
addDynamicKeybinding
or like here to add a keyboard shortcut.But for the window, it seems that we have only diagnostic window that support html, right? If so, the only use case I know about diagnostic window is by hoverprovider like here, where we need to hover on a text to make the diagnostic window appear.
Does anyone know how to use a keyboard shortcut to trigger a diagnostic window (whose content is related to the selection)?
Beta Was this translation helpful? Give feedback.
All reactions