-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add expectation for namespaced hover (#941)
Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
test/expectations/hover/documented_namespaced_class.exp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"params": [ | ||
{ | ||
"line": 1, | ||
"character": 6 | ||
} | ||
], | ||
"result": { | ||
"contents": { | ||
"kind": "markdown", | ||
"value": "```ruby\nFoo::Bar\n```\n\n**Definitions**: [fake.rb](file:///fake.rb#L2,1-3,3) | [fake.rb](file:///fake.rb#L6,1-7,3) | [fake.rb](file:///fake.rb#L11,3-12,5)\n\n\n\nThis is the documentation for Foo::Bar\n\nThis is more documentation for Foo::Bar\n\nThis is even more documentation for Foo::Bar" | ||
}, | ||
"range": { | ||
"start": { | ||
"line": 1, | ||
"character": 6 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"character": 14 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This is the documentation for Foo::Bar | ||
class Foo::Bar | ||
end | ||
|
||
# This is more documentation for Foo::Bar | ||
class Foo::Bar | ||
end | ||
|
||
class Foo | ||
# This is even more documentation for Foo::Bar | ||
class Bar | ||
end | ||
end |