Also Handle InitializeParams::rootUri (#212)

This commit is contained in:
Myriad-Dreamin
2025-08-29 22:52:15 +08:00
committed by GitHub
parent 41320e866c
commit bcd40b239d
2 changed files with 18 additions and 6 deletions

View File

@@ -64,7 +64,14 @@ struct InitializeParams {
/// This property is only available if the client supports workspace folders.
/// It can be `null` if the client supports workspace folders but none are
/// configured.
array<WorkspaceFolder> workspaceFolders;
optional<array<WorkspaceFolder>> workspaceFolders;
/// The rootUri of the workspace. Is null if no
/// folder is open. If both `rootPath` and `rootUri` are set
/// `rootUri` wins.
///
/// Deprecated in favour of `workspaceFolders`
optional<URI> rootUri;
};
struct ServerCapabilities {