openhab-vscode
openhab-vscode copied to clipboard
Internal Debugging - Event injection for development and testing
With a connection to the REST API as mentioned in #7 we could next also inject events from within the IDE. This way we could for example simulate the update of an item to e.g. test/debug a rule or sitemap.
I did not yet read up on the extension interfaces of VS Code. Maybe hover actions or a dynamic extension of the context menu is possible for certain elements.
For the reference: https://code.visualstudio.com/docs/extensions/example-debuggers https://github.com/Microsoft/vscode-mock-debug
Maybe hover actions or a dynamic extension of the context menu is possible for certain elements.
Certainly! I'm actually working on Hover context for things/bindings at the moment. It's not related to a debugger/event injection though.
@sjka just out of the blue :) How feasible it would be to expose a Xtend debugger server-side? Would that kind of feature even make sense on VSCode? See these docs for details.
Cheers
Frankly said: no idea (yet). But from a bit of digging around it doesn't look like Xtext has some support implemented for this protocol.