Skip to content
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

Merged
merged 8 commits into from
Oct 22, 2024

Conversation

MarcinVaadin
Copy link
Member

@MarcinVaadin MarcinVaadin commented Oct 8, 2024

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

@MarcinVaadin MarcinVaadin marked this pull request as ready for review October 15, 2024 07:16
Copy link

Artifact build on last commit: distributions.zip.
For MacOS users: there is a zip inside this zip and Finder unzips them both at once. Use unzip distributions.zip from Terminal or check solution for Archive Manager.

@@ -19,10 +19,10 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
Copy link
Member Author

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) {
Copy link
Member Author

@MarcinVaadin MarcinVaadin Oct 15, 2024

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.

Copy link
Contributor

@mgarciavaadin mgarciavaadin left a 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!

@MarcinVaadin MarcinVaadin merged commit fa60159 into main Oct 22, 2024
4 checks passed
@MarcinVaadin MarcinVaadin deleted the fix/own-undo-redo-manager branch October 22, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants