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:
Nick Cameron
2025-03-04 22:53:31 +13:00
committed by GitHub
parent 6e57a80c13
commit df278c7e6a
200 changed files with 7888 additions and 4459 deletions

View File

@ -672,8 +672,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 510,
"name": "endAbsolute",
"start": 499,
"type": "Identifier"
},
"arg": {
"elements": [
@ -766,8 +768,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 607,
"name": "endAbsolute",
"start": 596,
"type": "Identifier"
},
"arg": {
"elements": [
@ -860,8 +864,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 704,
"name": "endAbsolute",
"start": 693,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1072,8 +1078,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 876,
"name": "endAbsolute",
"start": 865,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1105,8 +1113,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "tag"
"end": 898,
"name": "tag",
"start": 895,
"type": "Identifier"
},
"arg": {
"end": 907,
@ -1134,8 +1144,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 930,
"name": "endAbsolute",
"start": 919,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1163,8 +1175,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "tag"
"end": 961,
"name": "tag",
"start": 958,
"type": "Identifier"
},
"arg": {
"end": 970,
@ -1192,8 +1206,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "endAbsolute"
"end": 993,
"name": "endAbsolute",
"start": 982,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1225,8 +1241,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "tag"
"end": 1016,
"name": "tag",
"start": 1013,
"type": "Identifier"
},
"arg": {
"end": 1025,
@ -1254,8 +1272,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "tag"
"end": 1041,
"name": "tag",
"start": 1038,
"type": "Identifier"
},
"arg": {
"end": 1050,
@ -1283,8 +1303,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "length"
"end": 1071,
"name": "length",
"start": 1065,
"type": "Identifier"
},
"arg": {
"end": 1084,
@ -1312,8 +1334,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "radius"
"end": 1112,
"name": "radius",
"start": 1106,
"type": "Identifier"
},
"arg": {
"end": 1116,
@ -1330,8 +1354,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "tags"
"end": 1129,
"name": "tags",
"start": 1125,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1554,8 +1580,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "center"
"end": 1410,
"name": "center",
"start": 1404,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1583,8 +1611,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "radius"
"end": 1427,
"name": "radius",
"start": 1421,
"type": "Identifier"
},
"arg": {
"end": 1433,
@ -1618,8 +1648,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "center"
"end": 1460,
"name": "center",
"start": 1454,
"type": "Identifier"
},
"arg": {
"elements": [
@ -1647,8 +1679,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "radius"
"end": 1477,
"name": "radius",
"start": 1471,
"type": "Identifier"
},
"arg": {
"end": 1484,
@ -1698,8 +1732,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "length"
"end": 1511,
"name": "length",
"start": 1505,
"type": "Identifier"
},
"arg": {
"end": 1520,
@ -2552,8 +2588,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "faces"
"end": 2073,
"name": "faces",
"start": 2068,
"type": "Identifier"
},
"arg": {
"elements": [
@ -2575,8 +2613,10 @@ description: Result of parsing fillet-and-shell.kcl
{
"type": "LabeledArg",
"label": {
"type": "Identifier",
"name": "thickness"
"end": 2094,
"name": "thickness",
"start": 2085,
"type": "Identifier"
},
"arg": {
"end": 2110,