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 programmatic save for custom text editors #13684

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

Conversation

msujew
Copy link
Member

@msujew msujew commented May 5, 2024

What it does

Closes #9230

Instead of using the EditorManager (that seemingly doesn't keep track of CustomEditorWidget instances), we simply use the monaco model service to save the underlying model.

Also removes an unused RPC method $tryCloseDocument.

How to test

Follow the instructions in #9230 and confirm that manual saving works as expected. Alternatively, the extension in #12979 should now also work as expected.

Review checklist

Reminder for reviewers

@msujew msujew added vscode issues related to VSCode compatibility custom-editor issues related to custom-editor functionality labels May 5, 2024
@msujew msujew changed the title Fix programmatic save for custom editors Fix programmatic save for custom text editors May 5, 2024
@msujew msujew force-pushed the msujew/fix-custom-editor-saving branch from b4f39c4 to 7a115fb Compare May 11, 2024 10:52
@tsmaeder tsmaeder requested a review from jonah-iden May 22, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom-editor issues related to custom-editor functionality vscode issues related to VSCode compatibility
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

CustomEditorProvider Cannot Saved file through function "document.save()"
1 participant