formatAndSave
Format a file and save it in one call. Errors during formatting prevent saving, ensuring file integrity.
Instructions
Format a file and save it in one call (formatDocument + saveDocument). Formatter errors propagate; save is not attempted on format failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file (absolute or workspace-relative) |