Removes the usage of the deprecated TextDocumentContentChangeEvent.rangeLength. The length of the range is now calculated from the TextDocumentContentChangeEvent.range instead, which should produce the same result.
This fixes a NullPointerException that happened when the LSP client didn't set the rangeLength (which is allowed according to the LSP specification).
Fixes #1674.
Removes the usage of the deprecated
TextDocumentContentChangeEvent.rangeLength
. The length of the range is now calculated from theTextDocumentContentChangeEvent.range
instead, which should produce the same result.This fixes a NullPointerException that happened when the LSP client didn't set the
rangeLength
(which is allowed according to the LSP specification).