addRoot method

  1. @override
void addRoot(
  1. Root root
)
override

Add a root to the client's local list. When the client declared rootsListChanged, the server is told with notifications/roots/list_changed (not on 2026-07-28, which has no such notification).

A root is a file:// URI (client/roots) with no .. segments, so a server cannot be pointed outside it.

Implementation

@override
void addRoot(Root root) => inner.addRoot(root);