onlook
onlook copied to clipboard
fix: reset isDirty state when edits revert to original
trafficstars
Description
Related Issues
Closes: #2183
Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Release
- [ ] Refactor
- [ ] Other (please describe):
Testing
Screenshots (if applicable)
Additional Notes
[!IMPORTANT] Fixes
isDirtystate inIDEManagerby usingsavedContentto track original file content.
- Behavior:
- Fixes
isDirtystate inIDEManagerby introducingsavedContentinEditorFileto track original content.- Updates
updateFileContent()to comparecontentwithsavedContentinstead ofcontent.- Modifies
saveActiveFile()to updatesavedContentafter saving, ensuringisDirtyis reset.- Data Structures:
- Adds
savedContenttoEditorFileinterface to store original file content.This description was created by
for 3120136ef4c4f37a726f545db413ffa4946f15aa. You can customize this summary. It will automatically update as commits are pushed.