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 sketch_on_face_start.kcl
|
||||
---
|
||||
{
|
||||
@ -82,8 +82,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 94,
|
||||
"name": "end",
|
||||
"start": 91,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -130,8 +132,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 124,
|
||||
"name": "end",
|
||||
"start": 121,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -178,8 +182,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 154,
|
||||
"name": "end",
|
||||
"start": 151,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -402,8 +408,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
"end": 245,
|
||||
"name": "length",
|
||||
"start": 239,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"end": 250,
|
||||
@ -550,8 +558,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 342,
|
||||
"name": "end",
|
||||
"start": 339,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -602,8 +612,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 367,
|
||||
"name": "end",
|
||||
"start": 364,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -654,8 +666,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
"end": 392,
|
||||
"name": "end",
|
||||
"start": 389,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
@ -733,8 +747,10 @@ description: Result of parsing sketch_on_face_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
"end": 438,
|
||||
"name": "length",
|
||||
"start": 432,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"end": 442,
|
||||
|
||||
Reference in New Issue
Block a user