microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
231 stars 13 forks source link

Creating new project is slow on new instance of VS Code #631

Open claudiaregio opened 1 year ago

claudiaregio commented 1 year ago

Describe the Issue

When working with a new VS Code instance, creating the first project feels really slow and sticky :( I added the logs below but please let me know if I can provide any other info to help

Real-time Video

Slow perf new project

Output logs from C#

Using dotnet configured on PATH Dotnet path: C:\Program Files\dotnet\dotnet.exe Activating C# + C# Dev Kit + C# IntelliCode... waiting for named pipe information from server... [stdout] {"pipeName":"\\.\pipe\dc4626b5-3fc6-4c13-9352-b9e92d96080c"} received named pipe information from server attempting to connect client to server... client has connected to server [Info - 5:21:09 PM] [Program] Language server initialized

Output logs from C# Dev Kit

Starting Spawn .NET server... Using preinstalled .NET runtime at "C:\Program Files\dotnet\dotnet.exe" Using runtime installed in SDK. Starting Open a solution... Starting Open a solution with environment service... Starting Clear environment... .NET server started and IPC established in 1810ms Completed Spawn .NET server (4424ms) Completed Clear environment (2368ms) Completed Open a solution with environment service (2449ms) Starting Restore solution... Completed Open a solution (2466ms) Starting NuGet restore for the solution. Starting command: "dotnet.exe" restore C:\Users\clregio\OneDrive - Microsoft\Dev\MyPasswordGenerator\MyPasswordGenerator.sln --interactive... Completed command: "dotnet.exe" restore C:\Users\clregio\OneDrive - Microsoft\Dev\MyPasswordGenerator\MyPasswordGenerator.sln --interactive (3888ms) Completed NuGet restore. Completed Restore solution (3890ms)

Steps To Reproduce

  1. Open new instance of VS Code
  2. Create any new project through command palette

Expected Behavior

For the time it takes for the command palette items to pop up and walk me through the getting started experience to be more responsive/quicker

Environment Information

claudiaregio commented 8 months ago

Is there any update on this? This is still really slow on a new instance of VS Code

smitpatel commented 8 months ago

The time it takes to show the list of templates is going to be little slower on new instance of VS Code since invoking the command has to start the C# dev kit extension too (which is already done if you are working with an open solution). So that experience difference is going to remain since we cannot activate extension in advance. We are trying to minimize the time as much as it allows.

I believe after choosing location, experience is slower because opening the workspace in VS Code. We will investigate and try to improve it.

rolfbjarne commented 2 months ago

The time from clicking "Create .NET project" until the dropdown shows up can be quite long... I first thought the button was broken, it must have taken 20s for anything to happen.

Closing and reopening VSCode and trying again it's much faster, but it's still at least 3-4 seconds right after opening VSCode, which is plenty of time to think "is this thing even working?"

This is on macOS, on an M2 Pro Mac Mini (not a particularly slow machine).

timheuer commented 1 month ago

Closing and reopening VSCode and trying again it's much faster, but it's still at least 3-4 seconds right after opening VSCode

@rolfbjarne still experiencing this on the latest...any chance a video?

claudiaregio commented 4 weeks ago

@timheuer if you need videos on this I can provide the user studies that show this