che-che4z-lsp-for-cobol icon indicating copy to clipboard operation
che-che4z-lsp-for-cobol copied to clipboard

Use TextDocumentSyncKind.Incremental instead of .Full

Open sergiuilie opened this issue 5 years ago • 0 comments

Description:

Currently at the initialize moment is send TextDocumentSyncKind.Full which means that documents are synced by always sending the full content of the document. As a performance improvement, it is indicated to use TextDocumentSyncKind.Incremental which means documents are synced by sending the full content on open after that only incremental updates to the document are sent.

It is necessary that the server will be compliant with this modification, new logic it is required.

Acceptance criteria:

  • correct implementation of the new logic
  • use-case and unit test
  • test on VSCode and CHE

Technical notes:

As a first idea for the modification please look upon the ruleStack variable generated by the grammar. Is it possible to map the document with the rules coming from the grammar so the map contains information at which rule and line the user applied modification.

sergiuilie avatar Jan 16 '20 15:01 sergiuilie