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
225 stars 10 forks source link

[BUG] Several issues that aren't working as expected #968

Open aboimpinto opened 7 months ago

aboimpinto commented 7 months ago

Describe the Issue

Dear C# Dev Kit Community,

I want to address some persistent bugs and suggest improvements for the C# Dev Kit in Visual Studio Code. As a developer using this extension regularly, I've encountered several issues that hinder productivity and overall usability. Here are the problems I've faced:

Suggestions for Improvement:

As a developer working with .NET applications on various operating systems, including Linux and Windows, these issues persist across different environments. I urge the development team to prioritize resolving these issues and making the C# Dev Kit more user-friendly and efficient.

Let's work together to make the C# Dev Kit in VSCode the best tool it can be for the entire community.

Steps To Reproduce

No response

Expected Behavior

the add-on just work as expected and better than Omnisharp.

Environment Information

Linux (Ubuntu and Manjaro) Windows 11

timheuer commented 7 months ago

@aboimpinto THanks for the thoughtful feedback. This is a mix of ideas and some areas you look like you are experiencing failures. If I could ask you to log independent issues on those items it helps isolate the discussion, triage, resolution to specific items and enables others facing similar issues to see that conversation. It's harder in grouped feedback like this...but we do appreciate the thoughts...

A few quick replies here from me:

Project load and symbol -- this sounds like you are seeing failures, we should get specific with a use case if repeatable and track it down. (@arkalyanms)

Debugging -- I feel you. VSCode has multiple entry points to run/debug your workspace. In the extension we've aimed to make this easy for .NET developers, not requiring launch/task json files to manage. If those are present they take precedent, else we have a 'dynamic' debugger that we integrate with these various entry points. Some of these experience rely on VSCode patterns (e.g., if you have a file open and use the editor button, it is operating on that file info, not the workspace). This is an area we are continually trying to improve...more changes to come here from our extension. (@WardenGnaw / @tmeschter)

Perf degradation -- again, if you see specifics, it would be good to see the actual specifics here so we can analyze (/cc @arkalyanms)

Namespace structure -- I believe this suggestion was already made and something we're looking at.

File add-on. -- I'm confused as you can create new file (I assume you mean templated ones). The reason it's exposed now via SE is that in just a regular workspace we don't know which project, etc. you may want to add it to -- but probably something we can surface up the existing command to the command pallette -- would be another good independent enhancement request to make (/cc @smitpatel)

Test explorer -- I'm confused as this indeed exists. VSCode now has integrated test explorer and we've provided the test adapter to integrate into that experience. Where appropriate we integrate with the 'shell' capabilities of VSCode as a principle. See https://code.visualstudio.com/docs/csharp/testing#_test-explorer

Modularization -- this is more of a principle approach to how we have the extension and our plans. If you want just language features, you don't need the Dev Kit. But the Dev Kit is intended to bring more capabilities together.

Add-ons -- Maybe I assume you are meaning IntelliCode (as we don't have others). IntelliCode is one of those modular things that is independent and separate (and can be installed separately -- FYI we're likely to make changes here not including it in our installer)

Thanks for the thoughtful remarks, let's separate some issues so we can independently resolve/action them.

aboimpinto commented 7 months ago

@timheuer, thanks for the answer ... Regarding monitoring the usage... those issues that need some monitoring happen several times a day and are sporadic... Just pain over pain! Maybe you can publish a video about how we can monitor VSCode and export the logs that you need. I have no idea how to do that!

Regarding the File Creation, I'm talking about file creation over the Explorer and not the Solution Explorer. Having one that works by putting the correct namespace would be nice.

Test Explorer ... maybe I should have noticed that.

Modulization: right now, I cannot just install the Language Server... the entire Dev Kit is installed, and with that, degradation (I have a last generation processor with 128GBytes of RAM)

Everything else ... thanks for acknowledging it. It was just an exercise in expelling the demons inside me, and it's nice that "god" (mean you, but it could be anyone in charge) is listening.

thanks Paulo

PS: I miss your videos.. they were great

timheuer commented 7 months ago

Maybe you can publish a video about how we can monitor VSCode and export the logs that you need. I have no idea how to do that!

I've thought this a good idea as well to a permalink the "can you get the logs for us" instructions -- will see how quickly we can do that formally or informally (cc: @webreidi)

right now, I cannot just install the Language Server

So if you just want C# language features, that's the C# extension (https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp). We hope that you'd find value in other things in the dev kit (e.g., test), but if you just want C# lang server, that's the base extension. Also FYI you can just close solution explorer view...it's not mandatory, it's a 'feature'

I got a good chuckle out of 'expelling the demons' -- appreciate it. We are listening and doing our best to respond as quick as we can. Perf/debugging/reliability are definitely things we want to prioritize working better for ALL.

arkalyanms commented 6 months ago

This is quality feedback, thanks for filing. Should we consider forking these into separate issues?

smitpatel commented 5 months ago

For namespace structure in newly generated file we have earliest tracking issue https://github.com/microsoft/vscode-dotnettools/issues/105 That is something we are currently working on a part of #967

Currently add new file only works on solution explorer. I believe we avoid changing anything in default explorer window so we don't have plan to modify adding new file there to generate file based on templates but we have plans to enable add new file in command palette so you don't have to use solution explorer. Filed #1071

webreidi commented 4 months ago

Closing this issue as we have opened separate issues for each of the asked for enhancements.

aboimpinto commented 6 days ago

@timheuer, I know this is already closed, but the issues are still there

I've made a small video showing my problems in the first issue: Project Loading and Symbol Recognition.

Here is the link for the video: https://youtu.be/_CrtnaWOpXw

I don't know how to create the debug output for VSCode to help you more, but if you need it, please let me know how I can do that.

It's not a long video ... just straight to the point. thanks all and keep up the good work Paulo Aboim Pinto

webreidi commented 1 day ago

@aboimpinto I see in your video that you have some projects that haven't loaded. When you see this yellow warning in the status bar, it means something is wrong. Can you please provide information from the Output window for C# Dev Kit, and what it says when you hover over the error?

Image

aboimpinto commented 1 day ago

ok .. when I get this issue again I will capture that and post here!!!