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

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

Open
claudiaregio opened this issue Oct 18, 2023 · 5 comments
Open

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

claudiaregio opened this issue Oct 18, 2023 · 5 comments
Assignees
Labels
area-templates Experiences around the project/item templates bug Something isn't working perf Performance related issues triaged The issue has been triaged
Milestone

Comments

@claudiaregio
Copy link

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

  • Windows 11
  • VS Code: 1.83.1
  • C# Dev Kit: v0.5.150
  • C#: v2.5.30
@claudiaregio claudiaregio added the bug Something isn't working label Oct 18, 2023
@microsoft-issue-labeler microsoft-issue-labeler bot added the area-solution Solution explorer label Oct 18, 2023
@webreidi webreidi added the perf Performance related issues label Oct 23, 2023
@claudiaregio
Copy link
Author

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

@smitpatel
Copy link
Member

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.

@smitpatel smitpatel added area-templates Experiences around the project/item templates and removed area-solution Solution explorer labels Feb 23, 2024
@tmeschter tmeschter added the triaged The issue has been triaged label Feb 29, 2024
@smitpatel smitpatel added this to the Backlog milestone Mar 26, 2024
@rolfbjarne
Copy link
Member

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
Copy link
Member

timheuer commented Oct 8, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates Experiences around the project/item templates bug Something isn't working perf Performance related issues triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

6 participants