didChange method

void didChange(
  1. String uri,
  2. String text, {
  3. int? version,
})

Replaces the whole content of uri with text (a full-document change).

Implementation

void didChange(String uri, String text, {int? version}) {
  sendNotification('textDocument/didChange', {
    'textDocument': {'uri': uri, 'version': ?version},
    'contentChanges': [
      {'text': text},
    ],
  });
}