-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Make the pygls-playground
extension a workspace local extension
#458
Conversation
Hmm, looks like someone (not me) has published a version of the extension to the marketplace....
Hopefully, it's easier than it used to be! While you still have to build the extension yourself (steps are in the extension's README), once it's built you should be able to hit the |
I'm getting stuck again I'm afraid 😞 I think it's just that I'm not familiar with VSCode. Here's some general notes:
|
Sure, didn't realise that was an option! :)
Good catch, I've added a note to the README.
Ah, I can see how that could be misleading,
The only way to know is to look at the table in
Looks like the extension chose the wrong working directory so Python wasn't finding the server...
Probably a side effect of it choosing the wrong working directory. |
0334f0b
to
4da4112
Compare
|
Interesting... was it completely broken? Or was the |
To ask a potentially silly question 😅 .... did you restart VSCode after recompiling the extension? I don't think it's smart enough yet to detect changes to the extension after it's initially loaded. |
Ah no, so the extension needs recompiling after changing Either way, I ran |
Rather than try and "guess" the path to `examples/servers` let's just set it via a config option which should be more reliable
No, the issue is that extensions (for some reason 🤷) don't get variables like I'm assuming, since you have the updated config that you also have the latest code? In which case I'm not sure why it's not working for you... 🤔 |
Okay, I uninstalled the extension and reinstalled and |
Description (e.g. "Related to ...", etc.)
With the latest version of VSCode (
v1.89
), there is now the concept of a workspace local extension. Any valid VSCode extension underneath the.vscode/extensions
directory of a project are recognised by the UI and can be installed as you would any other extension.This PR converts the
pygls-playground
extension to be workspace local which should make it a lot easier to get up and running with the example servers.What about older VSCode versions?
The extension is still compatible with older versions of VSCode, using the old 2-window approach. Assuming I've not missed anything, the only difference should be the folder from which the 2nd debug session is launched from.
Code review checklist (for code reviewer to complete)