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

Quick Info window size is strange #6275

Closed
xiaohai-huang opened this issue Sep 4, 2023 · 0 comments · Fixed by dotnet/roslyn#69893
Closed

Quick Info window size is strange #6275

xiaohai-huang opened this issue Sep 4, 2023 · 0 comments · Fixed by dotnet/roslyn#69893
Assignees
Milestone

Comments

@xiaohai-huang
Copy link

xiaohai-huang commented Sep 4, 2023

Type: Bug

Issue Description

The size of Quick Info is strange, the summary words are not wrapped. They are all displayed in one line.

Steps to Reproduce

  1. Create a C# file and write a method/class with long summary
  2. Hover over the method name.
/// <summary>
/// Arthur summons 3 shields that circle around him, 
/// enemies that are struck by the shield will receive 145/163/181/199/217/235 (+80% physical bonus) Physical Damage. 
/// Shields last for 5 seconds.
/// </summary>
public override void OnUpdate()
{
}

Expected Behavior

The Quick Info window should properly display the summary like what it does in JavaScript.

JavaScript quick info window

Actual Behavior

Quick Info window size is not adjusted properly.

image

Logs

C# log

Post the output from Output-->C# here

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`
[Trace - 10:42:15 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[LanguageServerHost][04:42:15.593][Start]textDocument/hover"
}


[Trace - 10:42:15 PM] Received response 'textDocument/hover - (38)' in 7ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "```csharp\r\nvoid AbilityThreeAction.OnUpdate()\r\n```\r\n  \r\nArthur&nbsp;summons&nbsp;3&nbsp;shields&nbsp;that&nbsp;circle&nbsp;around&nbsp;him,&nbsp;enemies&nbsp;that&nbsp;are&nbsp;struck&nbsp;by&nbsp;the&nbsp;shield&nbsp;will&nbsp;receive&nbsp;145/163/181/199/217/235&nbsp;\\(\\+80%&nbsp;physical&nbsp;bonus\\)&nbsp;Physical&nbsp;Damage\\.&nbsp;Shields&nbsp;last&nbsp;for&nbsp;5&nbsp;seconds\\.  \r\n"
    },
    "range": {
        "start": {
            "line": 25,
            "character": 23
        },
        "end": {
            "line": 25,
            "character": 31
        }
    }
}

Environment information

VSCode version: 1.81.1
C# Extension: 2.0.436
Using OmniSharp: false

Dotnet Information Error running dotnet --info: Error: Command failed: C:\Program Files\dotnet\dotnet.exe --info 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Visual Studio Code Extensions
Extension Author Version Folder Name
code-spell-checker streetsidesoftware 2.20.5 streetsidesoftware.code-spell-checker-2.20.5
csdevkit ms-dotnettools 0.4.10 ms-dotnettools.csdevkit-0.4.10-win32-x64
csharp ms-dotnettools 2.0.436 ms-dotnettools.csharp-2.0.436-win32-x64
docomment k--kato 1.0.0 k--kato.docomment-1.0.0
es7-react-js-snippets dsznajder 4.4.3 dsznajder.es7-react-js-snippets-4.4.3
explorer-exclude PeterSchmalfeldt 1.3.2 peterschmalfeldt.explorer-exclude-1.3.2
git-graph mhutchie 1.30.0 mhutchie.git-graph-1.30.0
gitlens eamodio 14.2.1 eamodio.gitlens-14.2.1
jupyter ms-toolsai 2023.7.1002162226 ms-toolsai.jupyter-2023.7.1002162226-win32-x64
jupyter-keymap ms-toolsai 1.1.2 ms-toolsai.jupyter-keymap-1.1.2
jupyter-renderers ms-toolsai 1.0.17 ms-toolsai.jupyter-renderers-1.0.17
LiveServer ritwickdey 5.7.9 ritwickdey.liveserver-5.7.9
material-icon-theme PKief 4.30.1 pkief.material-icon-theme-4.30.1
phind phind 0.4.4 phind.phind-0.4.4
prettier-vscode esbenp 10.1.0 esbenp.prettier-vscode-10.1.0
python ms-python 2023.14.0 ms-python.python-2023.14.0
remote-ssh-edit ms-vscode-remote 0.86.0 ms-vscode-remote.remote-ssh-edit-0.86.0
remote-wsl ms-vscode-remote 0.81.0 ms-vscode-remote.remote-wsl-0.81.0
vs-code-prettier-eslint rvest 5.1.0 rvest.vs-code-prettier-eslint-5.1.0
vscode-dotnet-runtime ms-dotnettools 1.7.2 ms-dotnettools.vscode-dotnet-runtime-1.7.2
vscode-eslint dbaeumer 2.4.2 dbaeumer.vscode-eslint-2.4.2
vscode-github-actions github 0.26.1 github.vscode-github-actions-0.26.1
vscode-jupyter-cell-tags ms-toolsai 0.1.8 ms-toolsai.vscode-jupyter-cell-tags-0.1.8
vscode-jupyter-slideshow ms-toolsai 0.1.5 ms-toolsai.vscode-jupyter-slideshow-0.1.5
vscode-pylance ms-python 2023.8.50 ms-python.vscode-pylance-2023.8.50
vscode-xml redhat 0.26.1 redhat.vscode-xml-0.26.1-win32-x64
vscodeintellicode-csharp ms-dotnettools 0.1.26 ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64
vstuc visualstudiotoolsforunity 0.9.0 visualstudiotoolsforunity.vstuc-0.9.0

Extension version: 2.0.436
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12400F (12 x 2496)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.84GB (22.36GB free)
Process Argv --folder-uri file:///d%3A/GameDev/Projects/My-Project/mini-rpg --crash-reporter-id eb7006a0-bb84-41ea-b1d9-64b84e84514c
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
0bi6i642:30823812
a2ce3375:30757347
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30823818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants