theia icon indicating copy to clipboard operation
theia copied to clipboard

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

Open tsmaeder opened this issue 5 months ago • 1 comments

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

tsmaeder avatar Feb 16 '24 14:02 tsmaeder

Here's the plugin:

testsave-0.0.1.zip

And here's the source:

testsave..src.zip

tsmaeder avatar Feb 16 '24 14:02 tsmaeder