gdscript_sync_file
Refresh GDScript analysis in Godot by notifying the LSP of file modifications to get updated diagnostics for .gd files after editing.
Instructions
Notify Godot's LSP that a file was modified and get updated diagnostics. Returns: diagnostics (errors/warnings) for the synced file. WHEN TO CALL: After using Edit/Write tools to modify a .gd file. The LSP does not watch files, so you must call this to refresh analysis. Optionally pass content directly to avoid reading from disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute or relative path to the modified .gd file | |
| content | No | File content to sync (optional, reads from disk if not provided) |