[solution]
Synchronizes pending watcher changes or selected files into the loaded workspace.
TypeScript and JavaScript workspaces can contain multiple projects, generated configs, path aliases, and live editor text.
The model can load, refresh, and inspect the workspace state it will use for later semantic calls.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| filePaths | json | No | Optional array of file paths to sync. |
Sync one edited file
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sync",
"arguments": {
"filePaths": [
"src/app.ts"
]
}
}
}Returns sync status and workspace revision.