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

Support workspace.save(URI) and workspace.saveAs(URI) #13393

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

tsmaeder
Copy link
Contributor

What it does

Fixes #13352

Contributed on behalf of STMicroelectronics

How to test

The attached vsix contributes two actions "Save current editor" and "Save As current editor". They invoke "save" and "saveAs" on the currently opened editor and displays the resulting uri. Note that in contrast to VS Code, Theia does not documents as "saveable" if they are not dirty, therefore a save on a clean document will not succeed. Check that the behaviour is correct in various scenarios.

Follow-ups

Review checklist

Reminder for reviewers

Fixes eclipse-theia#13352

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <[email protected]>
@tsmaeder
Copy link
Contributor Author

Here's the plugin:

testsave-0.0.1.zip

And here's the source:

testsave..src.zip

@tsmaeder tsmaeder added the vscode issues related to VSCode compatibility label Feb 17, 2024
Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

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

That looks good to me!
I tested the extension with no active editor and some active editors. All good

@tsmaeder tsmaeder merged commit c9bbfe5 into eclipse-theia:master Feb 20, 2024
14 checks passed
@jfaltermeier jfaltermeier added this to the 1.47.0 milestone Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[vscode] support workspace.save(URI) and workspace.saveAs(URI) introduced in 1.86.0
3 participants