[solution]
Unloads the current in-memory workspace and stops file watching. Use before external builds or IDE work when you need Glider to release the loaded workspace.
Try this tool in Playground.
This tool requires no parameters.
Unload the current workspace
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "unload",
"arguments": {}
}
}{
"success": true,
"data": {
"unloaded": true,
"hadLoadedSolution": true,
"previousLoadedPath": "/Users/dev/MyProject/MyProject.sln",
"previousLoadedKind": "solution",
"previousPendingChanges": 0,
"cache": {
"cacheStatus": "empty",
"revision": 3,
"lastRefreshUtc": null,
"loadedKind": "none",
"loadedPath": null
},
"fileWatcher": {
"enabled": false,
"watchedDirectory": null,
"pendingChanges": 0,
"watcherWasEnabled": true,
"previousWatchedDirectory": "/Users/dev/MyProject"
}
},
"meta": {
"durationMs": 25,
"cancelled": false,
"timedOut": false,
"timeoutMs": 1200000
},
"error": null
}Returns whether a workspace had been loaded, the previous loaded path/kind, and the cleared cache/file-watcher state after unload.