Skip to content

Commit 1f48ff8

Browse files
committed
fixed hover issue in #42
1 parent e5130a8 commit 1f48ff8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: providers/ObjectScriptHoverProvider.ts

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export class ObjectScriptHoverProvider implements vscode.HoverProvider {
1414
position: vscode.Position,
1515
token: vscode.CancellationToken,
1616
): vscode.ProviderResult<vscode.Hover> {
17+
if (!document.getWordRangeAtPosition(position)) {
18+
return;
19+
}
1720
return this.dollars(document, position) || this.commands(document, position);
1821
}
1922

0 commit comments

Comments
 (0)