mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
Adds fs.write-file / fs.write-bytes behind a new fs.write:<path> capability (high risk; resolved to the real path, a missing file through its real directory, so a link cannot reach outside the grant; writing doesn't imply reading), and workspace.project.write-file(path, text) behind project.write (medium risk; stays inside the root and creates missing directories). Writes go through the editor's save path: atomic, keeping the file's encoding and BOM (new files are UTF-8), capped at 16 MiB, and refused while an editor holds unsaved changes for the file. Both capabilities need engines.openidea ^1.3. Tested through the real component (misbehave fixture) and the SDK mock. Closes #1823 Closes #1824 Co-authored-by: chaoes <[email protected]>
Commit test fixture
Describe Changes (in the commit.message toolbar) reads the commit being
prepared and writes a message listing its files; the markers before-commit
check reports a message without a type: prefix and every DO NOT COMMIT
added by the commit.
Used by cargo test -p ide-host --test plugin_commit to exercise the commit
interface and the optional commit-checker export. It is not a marketplace plugin.