Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Hover: Disable three dots abbreviation (Ctrl+K Ctrl+I) #66405

Closed
Ciantic opened this issue Jan 11, 2019 · 2 comments
Closed

Show Hover: Disable three dots abbreviation (Ctrl+K Ctrl+I) #66405

Ciantic opened this issue Jan 11, 2019 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-hover Editor mouse hover typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Ciantic
Copy link

Ciantic commented Jan 11, 2019

  • VSCode Version: 1.30.2

Steps to Reproduce:

  1. Hover over a variable on TypeScript or click Ctrl+K, Ctrl+I
  2. Select all and copy
  3. Paste

You get these abbreviations:

let ffprobe_video_stream: {
    index: number;
    codec_name: string;
    codec_long_name: string;
    profile: string;
    codec_type: string;
    codec_time_base: string;
    codec_tag_string: string;
    codec_tag: string;
    width: number;
    height: number;
    ... 22 more ...;
    tags: {
        ...;
    };
}

The copy & pasted type is not usable anymore, it worked with previous vscode. I don't want the abbreviations with three dots. I constantly copy & paste type definitions, now I have to go to the definition to get them.

Here is the process why I even need them:

I sometimes copy & paste JSON objects, and get their type using that hover tooltip, used to work.

I sometimes copy & paste API type definitions to the React components (so that I don't make unneccessary dependencies between API and the component), and clean up the extra props. Now I can't do that either.

In my opinion you should not need to abbreviate that hover box, it has scrollbars and stuff. It was usable how it was.

@Ciantic
Copy link
Author

Ciantic commented Jan 11, 2019

Here is the first use case:

Paste this to VSCode:

let ffprobe_video_stream = {
    index: 1,
    codec_name: "h264",
    codec_long_name: "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
    profile: "High",
    codec_type: "video",
    codec_time_base: "1/48",
    codec_tag_string: "avc1",
    codec_tag: "0x31637661",
    width: 1280,
    height: 720,
    coded_width: 1280,
    coded_height: 720,
    has_b_frames: 0,
    sample_aspect_ratio: "1:1",
    display_aspect_ratio: "16:9",
    pix_fmt: "yuv420p",
    level: 31,
    chroma_location: "left",
    refs: 1,
    is_avc: "true",
    nal_length_size: "4",
    r_frame_rate: "24/1",
    avg_frame_rate: "24/1",
    time_base: "1/24000",
    start_pts: 0,
    start_time: "0.000000",
    duration_ts: 14315000,
    duration: "596.458333",
    bit_rate: "1991287",
    bits_per_raw_sample: "8",
    nb_frames: "14315",
    disposition: {
        default: 1,
        dub: 0,
        original: 0,
        comment: 0,
        lyrics: 0,
        karaoke: 0,
        forced: 0,
        hearing_impaired: 0,
        visual_impaired: 0,
        clean_effects: 0,
        attached_pic: 0,
        timed_thumbnails: 0
    },
    tags: {
        creation_time: "2010-01-10T08:29:06.000000Z",
        language: "und",
        handler_name: "(C) 2007 Google Inc. v08.13.2007."
    }
};

How do you get the type definition of that? It's not possible anymore, previously I could just hover it and get the type, remove the object and keep on going.

I've done this a lot, with all kinds of JSON objects, it's really handy to be able to paste a random JSON object to VSCode, hover over it and get the complete TS definition.

@RMacfarlane RMacfarlane added editor-hover Editor mouse hover typescript Typescript support issues labels Jan 11, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Jan 11, 2019

Duplicate of microsoft/TypeScript#25784 and falls under #64566

Hovers are optimized for readability. Displaying giant type infos in the hover is generally not very helpful but #64566 tracks allowing collapsed areas of a hover (the ...) to be expanded

@mjbvz mjbvz closed this as completed Jan 11, 2019
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) *duplicate Issue identified as a duplicate of another issue(s) labels Jan 11, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-hover Editor mouse hover typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants