icecoder/ICEcoder

Tooltip (Code Assist?) taking over entire editor screen

raymondsalas opened this issue · 3 comments

There are instances where there are tooltips taking over my code editor screen. See screenshot below. Sometimes, it completely covers the editor screen that I cannot hover to anything else in the screen to remove the tooltip. Not sure if this is code assist related since I disabled the feature and it is still persisting.

In the screenshot, I have sweetalert2 (sweetalert2.github.io) loaded in my root directory. Which are the codes being displayed in the screenshot. This occurs when I am editing a non-sweetalert JS file and hover to the "document" word of "document.getElementById(elem)"

I was only able to disable the tooltip from appearing by adding:
get('tooltip').style.display = "hidden";

under the if statement (icecoder.js > functionArgsTooltip):
if (1 === numResults && -1 === [null, "def"].indexOf(cM.getTokenTypeAt(coordsChar)))

image

It seems that terminal results may also need tweaking or word-wrapping if the line result is greater than code editor size.

image

If I use, shift+mouse wheel down, other text are exposed. But the black background is cut-off, making other text harder to read:

image

OK, both fixed - CSS in terminal needed to wrap and break as you'd expect and tooltip now limited to 200 char max re functions: 78e417a

Thanks for reporting both 👍🏼