-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Unnecessary "Couldn't connect to GDScript language server" when in non-Godot workspace #696
Comments
The extension should only be activated if you open a Godot file or if it find a |
I think opening a |
At the moment I think opening a Godot project first and then opening a (non-Godot) C# project straight after might trigger it, and then again even if you close and reopen Code. Do I thought it also happened in other workspaces but I can't reproduce it now. |
Are you using the Godot C# extension also? |
“Copy Resource Path” option appears in the right click menu of tabs in non-Godot project files as well. |
Nope. |
The only things that are supposed to activate this extension are:
The activation events listed in "activationEvents": [
"workspaceContains:project.godot",
"onDebugResolve:godot"
], I have absolutely no explanation for this extension getting activated for any reason outside the ones listed here. |
I'm seeing the same issue. When I open any non-Godot VSCode project, it still attempts to connect to Godot and eventually pops up the error message. |
Another data point that might be related: In addition to the GDScript button and connection warning in the lower right, I also see the "Godot Tools: Scene Preview" section in the left nav. I assume that this is also supposed to only show up when a Godot project is detected. So it seems like the Godot project detection might have a bug that's resulting in a false positive. |
The Scene Preview section actually isn't a bug: I personally hate it when major UI elements like that appear and disappear. It's much easier on my muscle memory if the action bar always has the same sections in the same order. I recently merged a significant refactor of the LSP Client internals, and one of the downstream goals of that is redoing the entire client connection workflow to be as hands-off as possible. The LSP status bar widget is probably going to go away as a result of this, along with the "couldn't connect" message. |
Ah, good to know. Fair enough, and it's easy enough to hide when I work on other types of projects.
Sounds great, thanks for the update! |
Godot version
4.2.2 stable
VS Code version
1.89.1
Godot Tools VS Code extension version
2.1.0
System information
Ubuntu 24.04
Issue description
When opening a non-Godot workspace in VSCode, the Godot extension still generates a notification that "the GDScript language server isn't available", even though it isn't necessary.
The notification should still pop up if it's detected that this workspace is a Godot project.
Steps to reproduce
The text was updated successfully, but these errors were encountered: