-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[monaco] non-blocking bulk edits #8329
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.
@akosyakov
I tested renaming for a typescript type with and without Auto Save
.
The changes are applied for both cases.
Other files still should be opened as dirty
I can see that behavior if Auto Save
is turned off.
I see some difference with VS Code behavior:
- VS Code does not open related files for applying changes if
Auto Save
is turned on: - VS Code opens related files if
Auto Save
is turned off
Just a question - if it was expected to align the behavior with VS Code within current PR?
To some extent yes, my main concern was to resolve blocking issues though. I will look how hard is to align auto save handling. |
@RomanNikitenko I've pushed another commit to only save model if auto save is on. |
@akosyakov, please remove the |
sorry did not get it. |
I do not see the |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
f708df2
to
f239bb7
Compare
@kittaakos good catch! removed and updated CHANGELOG |
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.
Tested after update: mentioned use case was aligned with VS Code behavior
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.
The changes work well (tested using a cross-file rename symbol):
autoSave = on
:
The edit completes successfully without the need to open the editorsautoSave = off
:
The edit completes successfully, corresponding files are opened (marked as dirty) with the proper edit changes
What it does
How to test
Apply some cross file refactoring for Typescript or Java, like rename type referenced from other files. Other files still should be opened as dirty and changes should be applied.
Review checklist
Reminder for reviewers