-
Notifications
You must be signed in to change notification settings - Fork 19
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
Is it possible to use autocomplete for the spike libraries? #29
Comments
Hey @TravelTrader , this is on my wish list too, but so far did not find a good way to achieve this... |
Can I help you in any way? |
Well, this is my first vscode extension as well 😄 Problem is I haven't found a way how to include custom language autocompletions in a plugin. Right now from what I understand they fully rely on the native language service that comes with the given language. |
Respect for this useful extension if it's your first. |
Seems it might be possible to use Not sure if it will be possible to create and distribute mock PY files with all the methods provided from the LEGO hub in the extension and then users to add the extraPaths settings to their workspace and point it to the directory within the plugin. Or even better - to have the extension auto append its autocomplete folder to the list when it is loaded. |
Hi! We use an additional folder in the project directory. It describes all the classes and auto-completion works great. You can also describe functions in your language there. |
For the spike library you can just put this file in the same folder as the program you're doing rn https://github.com/sanjayseshan/spikeprime-tools/blob/master/spiketools/hub/spike.py (I'm not sure if it has everything, but probably not since there is spike.control which can't be in the same file) |
We use this for us and it does have all functions, just mixed together into one single file. We had to sort out control functions and move them into a seperate file, etc. |
@GSG-Robots and @PeterStaev the suggested work around using the 'spike.py' file also works with a 'mindstorms.py' file in the root directory. |
Thanks for this awesome tool.
I recognized it for connecting the Remote Control to the Hub.
My question is just:
Is it possible to use autocomplete for the spike libraries?
Thank you.
The text was updated successfully, but these errors were encountered: