Adds support for the Hover feature, you can see it in action in the video attached.
Reviewed the existing code for the Completion feature, extracting few bits in different files and refactoring the logic.
Better support for the execution feature, I noticed something when there are python comments within the code it always fail so I trim them before sending the payload to the device, are you aware of that? they are replaced by newline characters and it should suffice to most use cases.
Then could you clarify what is the source of truth for the micropython functions and modules which can be used.
I tried to tests all functions using the execute feature but it becomes very challenging to make them working, specially when there was this issue with comments.
Plus it is unclear which functions are really available against the lcd/machine...modules is that something where you can help.
You can start playing with this sandbox file to see it in action
Hi @curdeveryday
This PR brings the following changes:
Then could you clarify what is the source of truth for the micropython functions and modules which can be used.
I got this page https://github.com/m5stack/M5Stack_MicroPython and this other https://github.com/m5stack/UIFlow-Code/wiki/Hardware
I tried to tests all functions using the execute feature but it becomes very challenging to make them working, specially when there was this issue with comments.
Plus it is unclear which functions are really available against the lcd/machine...modules is that something where you can help.
You can start playing with this sandbox file to see it in action
https://github.com/curdeveryday/vscode-m5stack-mpy/compare/master...darul75:task/completion?expand=1#diff-980103a6219a7a26da1227b8096d16f144dd79f02634d0e833bed9a406e6abc7
the trick to skip comments from being sent to the device
https://github.com/curdeveryday/vscode-m5stack-mpy/compare/master...darul75:task/completion?expand=1#diff-712ffc191bdeefcad981f5da7c2bb1550371e10c6854ed1b624ec4f415f7686eR1
https://user-images.githubusercontent.com/2134003/150991640-02400ecd-04c4-4f1b-b920-9f50ee4e830c.mp4