sendNotification method

  1. @override
Future<void> sendNotification({
  1. required String method,
  2. required Map<String, dynamic> params,
})
override

Sends a notification to the LSP server without waiting for a response. This is used for asynchronous operations that inform the server of changes.

Implementation

@override
Future<void> sendNotification({
  required String method,
  required Map<String, dynamic> params,
}) async {
  _channel.sink.add(
    jsonEncode({'jsonrpc': '2.0', 'method': method, 'params': params}),
  );
}