vscode-twoslash-queries icon indicating copy to clipboard operation
vscode-twoslash-queries copied to clipboard

Option to see large types (extend view box)

Open bennycode opened this issue 3 years ago • 8 comments

I like the vscode-twoslash-queries extension. Currently it shows a type within one line but for very large types it would be nice if you can expand that window to actually see the full type.

Screenshot

image

bennycode avatar Jul 05 '22 16:07 bennycode

The API for showing things inline doesn't have the ability to do mutli-line annotations.

I think theres an interesting space for figuring a way to trigger an action which opens a sidebar with the full info if it's constrained though?

orta avatar Jul 05 '22 17:07 orta

Imagine if we could attach a keybinding that took the token under the cursor and created a pane that showed the types, similar to when you click "View Problem" image

ferm10n avatar Aug 04 '22 17:08 ferm10n

playground inline type style is better

image

NWYLZW avatar Nov 25 '22 03:11 NWYLZW

The API for showing things inline doesn't have the ability to do mutli-line annotations.

I think theres an interesting space for figuring a way to trigger an action which opens a sidebar with the full info if it's constrained though?

Could we open some kind of popup like GitLens does?

Screenshot 2023-07-06 at 09 29 15

douglasjunior avatar Jul 06 '23 12:07 douglasjunior

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

image

( But the popover would be the same as the hover, it is the same API request to typescript)

orta avatar Jul 06 '23 17:07 orta

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

image

( But the popover would be the same as the hover, it is the same API request to typescript)

Looks good.

NWYLZW avatar Jul 06 '23 17:07 NWYLZW

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

image

( But the popover would be the same as the hover, it is the same API request to typescript)

Like ZoneWidget, VSCode does not seem to provide related functional support, maybe we still need to wait for ZoneWidget.

https://github.com/microsoft/vscode/issues/88483

NWYLZW avatar Jul 07 '23 03:07 NWYLZW

Could Editor insets be used to implement this at least for Insiders? https://github.com/microsoft/vscode/issues/85682

Chudesnov avatar Mar 28 '24 19:03 Chudesnov