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

Propagate "Save As" operation to plugin host #13689

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Conversation

msujew
Copy link
Member

@msujew msujew commented May 6, 2024

What it does

Closes #13688

Ensures that any new file created from a "Save As" operation correctly fires the onDidCreateFiles event in the plugin host. Also greatly simplifies the "Save As" operation logic.

How to test

  1. Download and install the test extension
  2. Open a file and change it.
  3. Use the save as operation and point the file picker to a non-existing file.
  4. Ensure that a notification pops up (triggered by onDidCreateFiles)
  5. Ensure that the "Save As" operation behavior still works as expected

Review checklist

Reminder for reviewers

@msujew msujew added filesystem issues related to the filesystem plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility labels May 6, 2024
@msujew msujew force-pushed the msujew/save-as-plugin-host branch from 0a186dc to c999ba0 Compare May 11, 2024 10:52
@msujew msujew force-pushed the msujew/save-as-plugin-host branch from c999ba0 to b71a8c4 Compare May 29, 2024 12:08
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @msujew, thank you very much for your change! I do have a few questions and concerns but overall it seems to work as advertised.

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msujew Thank you for the quick feedback! With the latest changes, I think we are good to go. Everything works as expected and the documentation was adjusted where necessary. Great work!

@msujew msujew force-pushed the msujew/save-as-plugin-host branch from 1435ad3 to 97f91d5 Compare June 17, 2024 16:02
@JonasHelming
Copy link
Contributor

@msujew I think we can merge this?

@msujew msujew merged commit 6dfbe6f into master Jun 20, 2024
11 of 14 checks passed
@msujew msujew deleted the msujew/save-as-plugin-host branch June 20, 2024 09:14
@github-actions github-actions bot added this to the 1.51.0 milestone Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filesystem issues related to the filesystem plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Plugin host onDidCreateFiles isn't fired when running Save As command
3 participants