-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: CopilotUndoManager service for tracking actions on save #124
Conversation
Artifact build on last commit: distributions.zip. |
@@ -19,10 +19,10 @@ jobs: | |||
java-version: '21' | |||
distribution: 'temurin' | |||
cache: gradle | |||
- name: Setup Gradle | |||
uses: gradle/actions/setup-gradle@v3 |
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.
Removed because we want to use embedded gradle wrapper
} | ||
} | ||
return RESPONSE_OK | ||
override fun after(vfsFile: VirtualFile) { |
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.
Do not open in editor binary files as it is only for text documents.
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.
Working great for me!
Description
Use approach similar to VS Code plugin to track file changes in our own service. Assumed that file writes that happen after given time window are invoked by IDE as save actions. Window size set to 1000 ms.
Fixes: https://github.com/vaadin/copilot-internal/issues/3305