Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 519425 - [lsp] Server doesn't get notified of changes if the chan…
…ge is at the beginning of the document

If a document is being modified at the beginning of the file, the
offset in the event will be zero. This will cause the boolean check
to be true and return early when monitoring for change events.
However, even if the user is modifying the beginning of the file, we
still want to notify the user so we should remove this zero offset
check.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
  • Loading branch information
rcjsuen committed Jul 8, 2017
1 parent 962d727 commit edeb7c6
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -383,7 +383,6 @@ define([
openDocument(evnt, languageServer);
return;
}
if (!evnt.start) return;

var textDocumentSync = languageServer.getTextDocumentSync();
if (textDocumentSync) {
Expand Down

0 comments on commit edeb7c6

Please sign in to comment.