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

Load project does not open file #32

Open
henrikx opened this issue Oct 5, 2022 · 6 comments
Open

Load project does not open file #32

henrikx opened this issue Oct 5, 2022 · 6 comments

Comments

@henrikx
Copy link

henrikx commented Oct 5, 2022

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

henrikx commented Oct 5, 2022

Steps to reproduce:

  • Command Palette > New C# Script
  • Command Palette > Load Project
  • Observe

@oleg-shilo
Copy link
Owner

I will investigate.

But just to ensure you are aware...

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

  • Command Palette > New C# Script
  • From this moment you can run, debug and use intellisense

image

@oleg-shilo
Copy link
Owner

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

henrikx commented Oct 19, 2022

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants