Skip to content

Commit

Permalink
fix: watchEditor might return null
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 6, 2021
1 parent ee08966 commit b5583e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signature-help-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class SignatureHelpManager {
this.subscriptions.add(
atom.workspace.observeTextEditors((editor) => {
const disposable = this.watchEditor(editor)
editor.onDidDestroy(() => disposable.dispose())
editor.onDidDestroy(() => disposable?.dispose())
}),
atom.commands.add("atom-text-editor", {
"signature-help:show": (evt) => {
Expand Down

0 comments on commit b5583e2

Please sign in to comment.