-
-
Notifications
You must be signed in to change notification settings - Fork 47
fix: add auto-save (hot load) functionality to AsyncAPI extension #270
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|
can yu share a video recording, showing the hot reloaading is working |
|
@ibishal , please check it out vs-code-hot-load-fix.2.1.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/extension.ts
Outdated
| console.log('Reloading visualizer file', document.uri.fsPath); | ||
| visualizeAsyncApi(context); | ||
| if (isAsyncAPIFile(document)) { | ||
| console.log('File saved. Triggering visualizer reload for', document.uri.fsPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think this is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ibishal, ok i remove log !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated please have a look and proceed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
/rtm |
|
/rtm |
|
🎉 This PR is included in version 0.8.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |



Title: fix: add auto-save functionality to AsyncAPI extension
Description:
Fixed the auto-save feature for AsyncAPI files to ensure they are automatically saved upon changes.
Updated onDidSaveTextDocument event to trigger visualizer and auto-save operations.
Updated Visualizer , visualizeAsyncApi method
Ensured proper event handling for AsyncAPI file visualization and updates upon save.
Fixed debug console logging to ensure proper output when running the extension.
Related issue(s):
Resolves #251