Skip to content

Commit

Permalink
Defend HelpCompletion from null message from VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmholt committed Mar 21, 2018
1 parent 945b126 commit 5db096d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/HelpCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export class HelpCompletionFeature implements IFeature {
}

public onEvent(changeEvent: TextDocumentChangeEvent): void {
if (!changeEvent) {
return;
}

this.helpCompletionProvider.updateState(
changeEvent.document,
changeEvent.contentChanges[0].text,
Expand Down

0 comments on commit 5db096d

Please sign in to comment.