Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Message for reloading code on file modification #176

Closed
fabioz opened this issue Jan 23, 2021 · 1 comment
Closed

Message for reloading code on file modification #176

fabioz opened this issue Jan 23, 2021 · 1 comment
Assignees

Comments

@fabioz
Copy link

fabioz commented Jan 23, 2021

For debugpy it'd be interesting to have a message which allows the debugger to be notified of changes to an edited file so that it can reload the contents of the file in the debugger.

@weinand
Copy link
Contributor

weinand commented Jan 26, 2021

The recommended way to address this problem is to run a file watcher from the debug adapter. This is what all debug extension that support hot reload do.
Sending file change notification from the client would only work for simple cases. Whenever there is a build process that transforms the source into some intermediate format, VS Code does not know what the resulting file is.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants