initialize method

  1. @Deprecated('Use initializeAcrossVersions instead.')
Future<InitializeResult> initialize(
  1. InitializeRequest request
)

Initializes the server, this should be done before anything else.

The client must call notifyInitialized after receiving and accepting this response.

Throws a StateError if initialization fails for unknown reasons (usually the server connection closes prematurely due to misconfiguration). To debug these errors you should pass a protocolLogSink when creating these connections.

A server that only serves request-scoped revisions rejects this request. If the answer names a version this client does not support, this closes the connection but returns the result. Use initializeAcrossVersions for version negotiation.

Implementation

@Deprecated('Use initializeAcrossVersions instead.')
Future<InitializeResult> initialize(InitializeRequest request) =>
    _initialize(request);