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

The format of await quick info content is wrong #6577

Closed
xiaohai-huang opened this issue Oct 21, 2023 · 0 comments · Fixed by dotnet/roslyn#70629
Closed

The format of await quick info content is wrong #6577

xiaohai-huang opened this issue Oct 21, 2023 · 0 comments · Fixed by dotnet/roslyn#70629
Assignees
Milestone

Comments

@xiaohai-huang
Copy link

xiaohai-huang commented Oct 21, 2023

Type: Bug

Issue Description

The format of quick info (hover content) for the await keyword is abnormal.

image

Steps to Reproduce

class Test
{
    public static async Task<string> GetText()
    {
        return "";
    }

    public static async void SayText()
    {
        string text = await GetText();
        Debug.Log(text);
    }
}

Hover over await and examine the hover content.

Expected Behavior

Actual Behavior

Strange format for the hover content.

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`

Environment information

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

Dotnet Information .NET SDK: Version: 7.0.102 Commit: 4bbdd14480

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.102\

Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb

.NET SDKs installed:
7.0.102 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
code-spell-checker streetsidesoftware 3.0.1 streetsidesoftware.code-spell-checker-3.0.1
csdevkit ms-dotnettools 0.5.150 ms-dotnettools.csdevkit-0.5.150-win32-x64
csharp ms-dotnettools 2.5.30 ms-dotnettools.csharp-2.5.30-win32-x64
dotnet-interactive-vscode ms-dotnettools 1.0.4461040 ms-dotnettools.dotnet-interactive-vscode-1.0.4461040
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
gcode vscode-gcode 0.2.1 vscode-gcode.gcode-0.2.1
git-graph mhutchie 1.30.0 mhutchie.git-graph-1.30.0
gitlens eamodio 14.3.0 eamodio.gitlens-14.3.0
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
nc-gcode ML 0.13.0 ml.nc-gcode-0.13.0
phind phind 0.13.0 phind.phind-0.13.0
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.7 ms-vscode-remote.remote-wsl-0.81.7
vs-code-prettier-eslint rvest 5.1.0 rvest.vs-code-prettier-eslint-5.1.0
vscode-dotnet-runtime ms-dotnettools 1.8.0 ms-dotnettools.vscode-dotnet-runtime-1.8.0
vscode-eslint dbaeumer 2.4.2 dbaeumer.vscode-eslint-2.4.2
vscode-github-actions github 0.26.2 github.vscode-github-actions-0.26.2
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-pull-request-github GitHub 0.70.0 github.vscode-pull-request-github-0.70.0
vscode-pylance ms-python 2023.10.10 ms-python.vscode-pylance-2023.10.10
vscode-thunder-client rangav 2.12.7 rangav.vscode-thunder-client-2.12.7
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.2 visualstudiotoolsforunity.vstuc-0.9.2

Extension version: 2.5.30
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 (20.08GB free)
Process Argv --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
py29gd2263:30856252
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
0bi6i642:30841073
a2ce3375:30757347
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30866041
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingt:30859503
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30845448
pyreplss1:30865275
pythoncet00cf:30866519
pythontbext0cf:30864173

@xiaohai-huang xiaohai-huang changed the title The format of await Hover content is wrong The format of await quick info content is wrong Oct 21, 2023
@dibarbet dibarbet self-assigned this Oct 23, 2023
@dibarbet dibarbet added this to the October milestone Oct 23, 2023
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