microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.61k stars 29.04k forks source link

Performace Issues coding C# using C# Dev Kit #212378

Closed NF-DomenicoDUva closed 5 months ago

NF-DomenicoDUva commented 5 months ago

Type: Performance Issue

-Open any medium size .NET Core Project -Start Editing a file -Microsoft Code Analysis Language Server process brings the Cpu to 99% making coding frustrating

VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:08:25.066Z) OS version: Linux x64 6.1.0-21-amd64 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1026)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|5, 5, 4| |Memory (System)|31.08GB (14.18GB free)| |Process Argv|--crash-reporter-id 4cfbbeb9-b124-4360-92fe-6bfb87d1ad64| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|gnome-xorg| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome-xorg| |XDG_SESSION_TYPE|x11|
Process Info ``` CPU % Mem MB PID Process 0 255 6098 code main 0 32 6104 zygote 0 159 6137 gpu-process 0 32 6105 zygote 0 0 6107 zygote 0 414 6185 window [1] (ProcessController.cs - WmsWeb - Visual Studio Code) 0 32 95674 utility-process 0 95 98821 window [4] (Issue Reporter) 0 64 6142 utility-network-service 0 95 6235 shared-process 0 0 98846 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 95 6265 ptyHost 0 0 88274 /usr/bin/zsh -i 0 732 88220 extensionHost [1] 0 2546 88334 /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csharp-2.29.11-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer --logLevel Information --razorSourceGenerator /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csharp-2.29.11-linux-x64/.razor/Microsoft.CodeAnalysis.Razor.Compiler.dll --devKitDependencyPath /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csharp-2.29.11-linux-x64/.roslynDevKit/Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId 2d69e7ff-a122-466b-917e-6bf6899c2dcd1715281051530 --telemetryLevel all --extensionLogDirectory /home/domenico.duva@naturefresh.local/.config/Code/logs/20240509T075531/window1/exthost/ms-dotnettools.csharp 0 191 88411 electron-nodejs (config.js ) 0 95 88495 /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csdevkit-1.5.20-linux-x64/components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/servicehub-controller-net60.linux-x64/Microsoft.ServiceHub.Controller 2867caf426 /ControllerCooldownTimeout:30000 /TelemetrySession:{"TelemetryLevel":"all","IsOptedIn":false,"HostName":"Default","AppInsightsInstrumentationKey":null,"AsimovInstrumentationKey":null,"CollectorApiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","AppId":1010,"UserId":"41b05ec0-c3d2-4482-b7de-0b6f6b044587","Id":"2d69e7ff-a122-466b-917e-6bf6899c2dcd1715281051530","ProcessStartTime":133597546532067430,"SkuName":null,"VSExeVersion":null,"BucketFiltersToEnableWatsonForFaults":[],"BucketFiltersToAddDumpsToFaults":[]} 0 255 88615 electron-nodejs (runtimeconfig.js ) 0 95 88739 /usr/share/dotnet/dotnet /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csdevkit-1.5.20-linux-x64/components/CPS/platforms/linux-x64/node_modules/@microsoft/visualstudio-projectsystem-buildhost.linux-x64/Microsoft.VisualStudio.ProjectSystem.Server.BuildHost.dll 0 127 95235 /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/8.0.204/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false 0 159 88618 /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csdevkit-1.5.20-linux-x64/components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-code-servicehost.linux-x64/Microsoft.VisualStudio.Code.ServiceHost dotnet$C94B8CFE-E3FD-4BAF-A941-2866DBB566FE net.pipe://88495DFA35 /TelemetrySession:{"TelemetryLevel":"all","IsOptedIn":false,"HostName":"Default","AppInsightsInstrumentationKey":null,"AsimovInstrumentationKey":null,"CollectorApiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","AppId":1010,"UserId":"41b05ec0-c3d2-4482-b7de-0b6f6b044587","Id":"2d69e7ff-a122-466b-917e-6bf6899c2dcd1715281051530","ProcessStartTime":133597546532067430,"SkuName":null,"VSExeVersion":null,"BucketFiltersToEnableWatsonForFaults":[],"BucketFiltersToAddDumpsToFaults":[]} 0 223 88417 /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csharp-2.29.11-linux-x64/.razor/rzls --logLevel 2 --projectConfigurationFileName project.razor.vscode.bin --DelegateToCSharpOnDiagnosticPublish true --UpdateBuffersForClosedDocuments true --telemetryLevel all --sessionId 2d69e7ff-a122-466b-917e-6bf6899c2dcd1715281051530 --telemetryExtensionPath /home/domenico.duva@naturefresh.local/.vscode/extensions/ms-dotnettools.csharp-2.29.11-linux-x64/.razortelemetry/Microsoft.VisualStudio.DevKit.Razor.dll 0 64 88516 electron-nodejs (server-node.js ) 0 223 88602 /usr/share/code/code /home/domenico.duva@naturefresh.local/.vscode/extensions/streetsidesoftware.code-spell-checker-3.0.1/packages/_server/dist/main.cjs --node-ipc --clientProcessId=88220 0 64 88807 /usr/share/code/code /usr/share/code/resources/app/extensions/html-language-features/server/dist/node/htmlServerMain --node-ipc --clientProcessId=88220 0 64 89892 electron-nodejs (server.js ) 0 64 89893 electron-nodejs (server.js ) 0 95 88237 fileWatcher [1] ```
Workspace Info ``` | Window (ProcessController.cs - WmsWeb - Visual Studio Code) | Folder (WmsWeb): 848 files | File types: dll(433) cs(147) cshtml(59) map(23) css(21) json(17) js(15) | cache(8) props(5) txt(3) | Conf files: github-actions(2) dockerfile(1) csproj(1) sln(1); ```
Extensions (37) Extension|Author (truncated)|Version ---|---|--- alpine-js-intellisense|adr|1.2.0 tailwind-documentation|alf|0.1.15 vim-cheatsheet|And|0.0.1 html-end-tag-labels|ant|1.0.0 vscode-tailwindcss|bra|0.10.5 catppuccin-vsc|Cat|3.14.0 catppuccin-vsc-icons|Cat|1.12.0 path-intellisense|chr|2.8.5 dbclient-jdbc|cwe|1.3.5 vscode-redis-client|cwe|7.3.5 vscode-html-css|ecm|2.0.9 mithril-emmet|Fal|0.7.7 copilot|Git|1.188.0 copilot-chat|Git|0.15.1 vscode-github-actions|git|0.26.2 vscode-pull-request-github|Git|0.88.1 vscode-nuget-package-manager|jmr|1.1.6 csharpextensions|kre|1.7.3 vscode-docker|ms-|1.29.1 csdevkit|ms-|1.5.20 csharp|ms-|2.29.11 vscode-dotnet-runtime|ms-|2.0.5 data-workspace-vscode|ms-|0.5.0 mssql|ms-|1.22.1 sql-bindings-vscode|ms-|0.4.0 sql-database-projects-vscode|ms-|1.4.1 vscode-typescript-next|ms-|5.5.20240505 indent-rainbow|ode|8.3.1 htmx-tags|oto|0.0.8 postman-for-vscode|Pos|1.0.1 vscode-yaml|red|1.14.0 alpinejs-syntax-highlight|spe|1.0.1 code-spell-checker|str|3.0.1 svelte-vscode|sve|108.4.1 catppuccin-perfect-icons|tha|0.21.32 vim|vsc|1.27.2 JavaScriptSnippets|xab|1.8.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 chatpanelc:31018788 dsvsc021:30996838 724cj586:31013169 pythonprc:31039816 dwnewjupytercf:31039676 ```
mjbvz commented 5 months ago

/extC#

vscodenpa commented 5 months ago

It looks like this is caused by the C# extension. Please file the issue to the C# extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!