oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

Load project does not open file #32

Open henrikx opened 1 year ago

henrikx commented 1 year ago

When I click "Load Project" on a CS-Script file, all I get is a new workspace with launch.json and tasks.json. Interestingly, if I go into the command pallete and click load project again it brings up the file I had open. However the file is still not open from within the workspace and thus OmniSharp is not being ran on the file.

henrikx commented 1 year ago

Steps to reproduce:

oleg-shilo commented 1 year ago

I will investigate.

But just to ensure you are aware...

If you open VSCode (no folder/workspace opened):

image

oleg-shilo commented 1 year ago

I am unable to reproduce it: issue#32

Keep in mind that if VSCode has already folder/workspace already loaded then C# project will be opened in a new VSCode window (process).

henrikx commented 1 year ago

Quite strange... Doing the same thing presents a different result on my machine: gif

Please let me know what details I can provide to help debug this.

oleg-shilo commented 1 year ago

I suggest you try to execute the sequence of the "Load Project" steps manually to see where the problem is.

After creating the script in the terminal generate the project manually: image And now try to open the folder where .csproj was generated.

Hope it will revile the problem.

oleg-shilo commented 1 year ago

After working on #33 I found one use-case that indeed prevented the "Load project" command from working correctly. It is fixed iv v2.2.0