roots capability duringinitialization:{ "capabilities": { "roots": { "listChanged":true } }}listChanged indicates whether the client will emit notifications when the list of rootschanges.roots/list request:Request:{ "jsonrpc":"2.0", "id":1, "method":"roots/list"}{ "jsonrpc":"2.0", "id":1, "result": { "roots": [ { "uri":"file:///home/user/projects/myproject", "name":"My Project" } ] }}listChangedMUST send a notification:{ "jsonrpc":"2.0", "method":"notifications/roots/list_changed"}uri: Unique identifier for the root. ThisMUST be afile:// URI in the currentspecification.name: Optional human-readable name for display purposes.{ "uri":"file:///home/user/projects/myproject", "name":"My Project"}[ { "uri":"file:///home/user/repos/frontend", "name":"Frontend Repository" }, { "uri":"file:///home/user/repos/backend", "name":"Backend Repository" }]-32601 (Method not found)-32603{ "jsonrpc":"2.0", "id":1, "error": { "code":-32601, "message":"Roots not supported", "data": { "reason":"Client does not have roots capability" } }}Was this page helpful?