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

Update the edited script resource only on save #78159

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kinami-imai
Copy link
Contributor

Currently, the script editor will update the cached script resource directly when the code idle timeout expires. This means an unsaved script can affect other aspects of the editor, leading to some issues (#50578, #78126). This is also quite surprising to me personally, as I would expect my changes to take effect only when I save the script, in line with an external code editor. To follow the principle of least surprise, I think this needs to be changed.

This PR (currently draft), changes the behaviour to only update the script resource when it is actually saved to disk. This fixes #50578 and fixes #78126.

@kinami-imai kinami-imai requested a review from a team as a code owner June 12, 2023 21:40
@kinami-imai kinami-imai marked this pull request as draft June 12, 2023 21:40
@Chaosus Chaosus added this to the 4.2 milestone Jun 13, 2023
@AThousandShips AThousandShips modified the milestones: 4.2, 4.3 Oct 27, 2023
@AThousandShips AThousandShips modified the milestones: 4.3, 4.4 Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants