Various hover improvements (#5617)
* Show more info on hover for variables Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move hover impls to lsp module Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips Signed-off-by: Nick Cameron <nrc@ncameron.org> * Test the new hovers; fix signature syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tips for kwargs Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing angled_line.kcl
|
||||
---
|
||||
{
|
||||
@ -93,8 +93,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 81,
|
||||
"name": "end",
|
||||
"start": 78,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -145,8 +147,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 111,
|
||||
"name": "end",
|
||||
"start": 108,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -189,8 +193,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "tag"
|
||||
"end": 132,
|
||||
"name": "tag",
|
||||
"start": 129,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"end": 141,
|
||||
@ -218,8 +224,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 156,
|
||||
"name": "end",
|
||||
"start": 153,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -344,8 +352,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 231,
|
||||
"name": "end",
|
||||
"start": 228,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -423,8 +433,10 @@ description: Result of parsing angled_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
"end": 284,
|
||||
"name": "length",
|
||||
"start": 278,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"end": 288,
|
||||
|
||||
Reference in New Issue
Block a user