Skip to content

Commit

Permalink
fixed hover issue in #42
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jul 2, 2019
1 parent e5130a8 commit 1f48ff8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/ObjectScriptHoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export class ObjectScriptHoverProvider implements vscode.HoverProvider {
position: vscode.Position,
token: vscode.CancellationToken,
): vscode.ProviderResult<vscode.Hover> {
if (!document.getWordRangeAtPosition(position)) {
return;
}
return this.dollars(document, position) || this.commands(document, position);
}

Expand Down

0 comments on commit 1f48ff8

Please sign in to comment.