Closed ellioseven closed 2 years ago
It's expect since we only know foo
is const
Result: {
"text": "<global>",
"kind": "script",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 1,
"offset": 1
},
"end": {
"line": 9,
"offset": 3
}
}
],
"childItems": [
{
"text": "bar",
"kind": "function",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 7,
"offset": 1
},
"end": {
"line": 9,
"offset": 2
}
}
],
"nameSpan": {
"start": {
"line": 7,
"offset": 10
},
"end": {
"line": 7,
"offset": 13
}
}
},
{
"text": "foo",
"kind": "const",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 2,
"offset": 7
},
"end": {
"line": 4,
"offset": 2
}
}
],
"nameSpan": {
"start": {
"line": 2,
"offset": 7
},
"end": {
"line": 2,
"offset": 10
}
}
}
]
}
So this seems to be a response from ts-server
that isn't providing the correct kind
. This is an upstream issue then?
It's expected, IMO.
I'm trying to get the current function to show on
lightline
, which seems to work for normal functions, but not arrow functions:Is there some kind of configuration I'm missing?
Here is my function: