Skip to content

[BUG] Method definition in 'suggest' widget is truncated #8076

Open
@dibarbet

Description

@dibarbet

Originally filed by @sliekens at microsoft/vscode-dotnettools#1356

Describe the Issue

When you view the IntelliSense documentation of a C# method in the 'suggest' widget, the method definition is truncated. There is no text wrapping, nor is it possible to scroll horizontally. The only way to view the full method definition is to resize the widget.

Steps To Reproduce

Recording.2024-08-11.162726.mp4

Expected Behavior

I've seen other language providers put the method definition in the header element of the suggest widget, which has a white-space: pre-wrap CSS style, so the method definition will wrap when necessary (and on line breaks).

JS example from https://code.visualstudio.com/docs/editor/intellisense:

(By the way, here the method definitions are displayed in a grey color without syntax highlighting.)

intellisense_docs

Discussion

Indeed, your observations are correct. We can move the method definition into the header, which improves the wrapping a bit. However then the colorization gets lost: image

I'm not sure there is a lot we can do on the extension side, we may need assistance from VSCode here so that we can keep colorization while also improving the wrapping behavior.

Environment Information

Version: 1.92.1 (user setup)
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions