Skip to content

Commit

Permalink
LSP: Fix LSP::LocationLink's not being returned within an array (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
jansul authored Aug 31, 2023
1 parent 0668cac commit d554f7c
Show file tree
Hide file tree
Showing 66 changed files with 1,730 additions and 1,608 deletions.
60 changes: 31 additions & 29 deletions spec/language_server/definition/location_link/connect
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,41 @@ component Test {
-------------------------------------------------------------------------request
{
"jsonrpc": "2.0",
"result": {
"originSelectionRange": {
"start": {
"line": 1,
"character": 10
},
"end": {
"line": 1,
"character": 15
}
},
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 0,
"character": 0
"result": [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 10
},
"end": {
"line": 1,
"character": 15
}
},
"end": {
"line": 3,
"character": 1
}
},
"targetSelectionRange": {
"start": {
"line": 1,
"character": 6
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 3,
"character": 1
}
},
"end": {
"line": 1,
"character": 11
"targetSelectionRange": {
"start": {
"line": 1,
"character": 6
},
"end": {
"line": 1,
"character": 11
}
}
}
},
],
"id": 1
}
------------------------------------------------------------------------response
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,41 @@ component Test {
-------------------------------------------------------------------------request
{
"jsonrpc": "2.0",
"result": {
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 35
}
},
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
"result": [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 35
}
},
"end": {
"line": 2,
"character": 23
}
},
"targetSelectionRange": {
"start": {
"line": 2,
"character": 8
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 2,
"character": 23
}
},
"end": {
"line": 2,
"character": 16
"targetSelectionRange": {
"start": {
"line": 2,
"character": 8
},
"end": {
"line": 2,
"character": 16
}
}
}
},
],
"id": 1
}
------------------------------------------------------------------------response
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,41 @@ component Test {
-------------------------------------------------------------------------request
{
"jsonrpc": "2.0",
"result": {
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 31
}
},
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
"result": [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 31
}
},
"end": {
"line": 4,
"character": 3
}
},
"targetSelectionRange": {
"start": {
"line": 2,
"character": 6
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 4,
"character": 3
}
},
"end": {
"line": 2,
"character": 10
"targetSelectionRange": {
"start": {
"line": 2,
"character": 6
},
"end": {
"line": 2,
"character": 10
}
}
}
},
],
"id": 1
}
------------------------------------------------------------------------response
60 changes: 31 additions & 29 deletions spec/language_server/definition/location_link/connect_variable_get
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,41 @@ component Test {
-------------------------------------------------------------------------request
{
"jsonrpc": "2.0",
"result": {
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 31
}
},
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
"result": [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 31
}
},
"end": {
"line": 5,
"character": 0
}
},
"targetSelectionRange": {
"start": {
"line": 2,
"character": 6
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 5,
"character": 0
}
},
"end": {
"line": 2,
"character": 10
"targetSelectionRange": {
"start": {
"line": 2,
"character": 6
},
"end": {
"line": 2,
"character": 10
}
}
}
},
],
"id": 1
}
------------------------------------------------------------------------response
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,41 @@ component Test {
-------------------------------------------------------------------------request
{
"jsonrpc": "2.0",
"result": {
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 35
}
},
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
"result": [
{
"originSelectionRange": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 35
}
},
"end": {
"line": 2,
"character": 24
}
},
"targetSelectionRange": {
"start": {
"line": 2,
"character": 8
"targetUri": "file://#{root_path}/store.mint",
"targetRange": {
"start": {
"line": 2,
"character": 2
},
"end": {
"line": 2,
"character": 24
}
},
"end": {
"line": 2,
"character": 16
"targetSelectionRange": {
"start": {
"line": 2,
"character": 8
},
"end": {
"line": 2,
"character": 16
}
}
}
},
],
"id": 1
}
------------------------------------------------------------------------response
Loading

0 comments on commit d554f7c

Please sign in to comment.