This is where my project is
And this is what happens when i open a script from that project
I don’t understand. What’s the issue?
I assume the OP means all the tab looking things at the top. Which in VS code, I’m not sure what those are since I just use VS.
When you open a script in Visual Studio Code by double clicking the script file inside the project window in Unity, something goes wrong if the script path contains spaces. This used to work fine with 2018.1, but something broke with 2018.2 (at least on Mac).
I’m having this problem myself right now. My project sits on an external HD that has a space in its name. When I attempt to open a script in my project, VS Code gets confused and attempts to treat folders on the script file path as files, opening empty tabs with the names of folders as filenames. The script file tab itself remains empty for me too. Apparently it’s Unity not passing paths with spaces in them correctly to VS Code that’s at fault here?
As a dirty workaround I can click the Open folder button in VS Code and open my project folder manually that way. It works, but I can’t double click stuff in Unity’s console to jump to the correct places in scripts automatically anymore. Hope this gets fixed soon. I understood from somewhere that this issue has already been fixed, but the fixed hasn’t reached 2018.2 yet. I hope we won’t have to wait until 2018.3 for this.
I’d post this in the “Editor & General Support” forum, because this isn’t really a scripting issue.
I removed all spaces in the path and its now working fine.
Am having the same issue : )
This issue has been fixed in Unity 2018.2.1f1, according to the release notes.