Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Fix compilation error in the hoverProvider.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoura committed Jul 18, 2023
1 parent 8951d6a commit 8e50f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/hoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class LogtalkHoverProvider implements HoverProvider {
}
let pi = Utils.getPredicateUnderCursor(doc, position);
let contents: string[] = Utils.getSnippetDescription(doc, pi);
return contents === [] ? null : new Hover(contents, wordRange);
return contents.length == 0 ? null : new Hover(contents, wordRange);

}

Expand Down

0 comments on commit 8e50f6a

Please sign in to comment.