-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:sekiguchi-nagisa/arsh
- Loading branch information
Showing
32 changed files
with
313 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# RUN: call $cmd --test $self --log info | ||
|
||
{"id": 0, "jsonrpc": "2.0", "method": "initialize", | ||
"params": {"capabilities": {}, "rootUri": "file:///test", "processId": 46}} | ||
|
||
# CHECK: { | ||
# CHECK_IF: "capabilities": { | ||
# CHECK_IF: } | ||
|
||
<<< | ||
{"jsonrpc": "2.0", "method": "textDocument/didOpen", | ||
"params": { | ||
"textDocument": {"languageId": "arsh", "version": 1, "uri": "file:///test/test.ds", | ||
"text": "var ZZZ = $false; { var ZAAA = 34; var ZE22 = 23; var Z000 = 23;"} | ||
} | ||
} | ||
|
||
<<< | ||
{"jsonrpc": "2.0", "method": "$/sleep", | ||
"params": { | ||
"msec": 200 | ||
} | ||
} | ||
|
||
<<< | ||
{"id": 1, "jsonrpc": "2.0", "method": "textDocument/completion", | ||
"params": { | ||
"context": { "triggerKind": 1 }, | ||
"position": { "character": 2, "line": 1 }, | ||
"textDocument": { "uri": "file:///test/test/hoge.ds" } | ||
} | ||
} | ||
|
||
<<< | ||
{"jsonrpc": "2.0", "method": "$/cancelRequest", | ||
"params": { | ||
"id": 1 | ||
} | ||
} | ||
|
||
# CHECK_IF: "error": { | ||
# CHECK: "code": -32800, | ||
# CHECK: "message": "canceled" | ||
# CHECK: }, | ||
# CHECK: "id": 1, | ||
# CHECK: "jsonrpc": "2.0" | ||
# CHECK: } | ||
|
||
# CHECKERR_RE_IF: ^.+ <info> .+ try cancel: request id=1 | ||
|
||
# CHECKERR_RE_IF: ^.+ <info> .+ do cancel: request id=1 | ||
|
||
|
||
## invalid cancel | ||
<<< | ||
{"jsonrpc": "2.0", "method": "$/cancelRequest", | ||
"params": { | ||
"id": "nothing" | ||
} | ||
} | ||
|
||
<<< | ||
{"id": 2, "jsonrpc": "2.0", "method": "shutdown"} | ||
|
||
# CHECK_IF: "result": null | ||
# CHECK: } | ||
|
||
<<< | ||
{"jsonrpc": "2.0", "method": "exit"} | ||
# STATUS: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
# RUN: call $cmd --test $self | ||
|
||
23 | ||
|
||
# CHECK: { | ||
# CHECK: "code": -32600, | ||
# CHECK: "data": "require `object', but is `long'", | ||
# CHECK: "message": "Invalid Request" | ||
# CHECK: "error": { | ||
# CHECK: "code": -32600, | ||
# CHECK: "data": "require `object', but is `long'", | ||
# CHECK: "message": "Invalid Request" | ||
# CHECK: }, | ||
# CHECK: "id": null, | ||
# CHECK: "jsonrpc": "2.0" | ||
# CHECK: } | ||
|
||
<<< | ||
{ "34" : false} | ||
|
||
# CHECK: { | ||
# CHECK: "code": -32600, | ||
# CHECK: "data": "undefined field `jsonrpc'", | ||
# CHECK: "message": "Invalid Request" | ||
# CHECK: "error": { | ||
# CHECK: "code": -32600, | ||
# CHECK: "data": "undefined field `jsonrpc'", | ||
# CHECK: "message": "Invalid Request" | ||
# CHECK: }, | ||
# CHECK: "id": null, | ||
# CHECK: "jsonrpc": "2.0" | ||
# CHECK: } | ||
|
||
<<< | ||
# STATUS: 137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.