14

I have a VSCode extension that helps me autocomplete file paths, however many file paths grow long and are truncated in the VSCode intellisense popover window.

How can I set VSCode to either:

  • have a fixed width that I can set to be large
  • automatically expand to fit the intellisense options (preferable)

I happen to have written the extension so if needed I can update it if that is required.

empire29
  • 3,729
  • 6
  • 45
  • 71
  • See https://stackoverflow.com/a/64492059/836330 this functionality has been added to the Insiders' Build v1.51. – Mark Oct 22 '20 at 23:59
  • It appears to be a fixed width only - not dynamic. Also works for the details box on the right. – Mark Oct 23 '20 at 00:08

3 Answers3

9

One way around this is to press Ctrl + Space (or what ever your "Trigger suggestion" shortcut is) while the suggestion popover is open to show more detail about current selection.

So this (where I can't differentiate between the Trans imported from @lingui/macro and the one from @lingui/react):

small suggestion popup

Becomes this:

larger suggestion popup

clemlatz
  • 7,543
  • 4
  • 37
  • 51
5

I don't think this is possible, VSCode generally gives extensions very little control over the built-in UI. See also the Restrictions section of the Extensions Capabilities Overview. Technically there is a way to hack around that, but I wouldn't necessarily recommend it.

There are also a number of settings for the suggest widget, but none of them seems to correspond directly to width. The closest you can get would be reducing the font size with "editor.suggestFontSize".

Gama11
  • 31,714
  • 9
  • 78
  • 100
  • 1
    Bummer that the actual question can't be addressed, but using `"editor.suggestFontSize"` in this case seems like a good solution. What I want is a way to make the "read more" box (with the details of the underlying function) wider and/or have smaller text, and there's currently no way to do that AFAICT. – jerclarke Jul 17 '20 at 20:07
  • 1
    this really sucks my files have very long names which often start with the same thing and do not fit within this small window =( – ICW May 13 '22 at 14:04
5

You can resize suggestion window with mouse.

Lex
  • 567
  • 7
  • 7