summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-01-27 11:32:49 +1100
committerGitHub <noreply@github.com>2021-01-27 11:32:49 +1100
commite7323002d9fe5ab834754592916aba7cb842613d (patch)
tree0c7265e4a880c0defabf71ca560d54a36d055c69 /cli/tests
parentada43cc56ac2e337cc034f8052d7e5da61268c34 (diff)
feat(lsp): add performance measurements (#9209)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/lsp/did_change_notification_large_02.json25
-rw-r--r--cli/tests/lsp/did_change_notification_large_03.json25
-rw-r--r--cli/tests/lsp/hover_request_large_01.json14
-rw-r--r--cli/tests/lsp/hover_request_large_02.json14
-rw-r--r--cli/tests/lsp/hover_request_large_03.json14
-rw-r--r--cli/tests/lsp/performance_request.json6
6 files changed, 98 insertions, 0 deletions
diff --git a/cli/tests/lsp/did_change_notification_large_02.json b/cli/tests/lsp/did_change_notification_large_02.json
new file mode 100644
index 000000000..e8744d620
--- /dev/null
+++ b/cli/tests/lsp/did_change_notification_large_02.json
@@ -0,0 +1,25 @@
+{
+ "jsonrpc": "2.0",
+ "method": "textDocument/didChange",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "version": 2
+ },
+ "contentChanges": [
+ {
+ "range": {
+ "start": {
+ "line": 445,
+ "character": 4
+ },
+ "end": {
+ "line": 445,
+ "character": 4
+ }
+ },
+ "text": "// "
+ }
+ ]
+ }
+}
diff --git a/cli/tests/lsp/did_change_notification_large_03.json b/cli/tests/lsp/did_change_notification_large_03.json
new file mode 100644
index 000000000..f39234510
--- /dev/null
+++ b/cli/tests/lsp/did_change_notification_large_03.json
@@ -0,0 +1,25 @@
+{
+ "jsonrpc": "2.0",
+ "method": "textDocument/didChange",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "version": 2
+ },
+ "contentChanges": [
+ {
+ "range": {
+ "start": {
+ "line": 477,
+ "character": 4
+ },
+ "end": {
+ "line": 477,
+ "character": 9
+ }
+ },
+ "text": "error"
+ }
+ ]
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_01.json b/cli/tests/lsp/hover_request_large_01.json
new file mode 100644
index 000000000..78ddee5a3
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_01.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 421,
+ "character": 30
+ }
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_02.json b/cli/tests/lsp/hover_request_large_02.json
new file mode 100644
index 000000000..4d7eae150
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_02.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 444,
+ "character": 6
+ }
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_03.json b/cli/tests/lsp/hover_request_large_03.json
new file mode 100644
index 000000000..5309450dd
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_03.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 461,
+ "character": 34
+ }
+ }
+}
diff --git a/cli/tests/lsp/performance_request.json b/cli/tests/lsp/performance_request.json
new file mode 100644
index 000000000..cb389cb9d
--- /dev/null
+++ b/cli/tests/lsp/performance_request.json
@@ -0,0 +1,6 @@
+{
+ "jsonrpc": "2.0",
+ "id": 99,
+ "method": "deno/performance",
+ "params": {}
+}