diff options
| author | Jean Pierre <jeanp413@hotmail.com> | 2021-04-19 00:11:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 15:11:26 +1000 |
| commit | 65a2a04d3bf116c1dee8d2528ec18e71ca4d7bf2 (patch) | |
| tree | 6d91d77583d82c0145f8f90ccf4e83bc2ae38228 /cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json | |
| parent | 0552eaf569ef910b0d132b6e60758f17a4519d91 (diff) | |
feat(lsp): implement textDocument/prepareCallHierarchy (#10061)
Diffstat (limited to 'cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json')
| -rw-r--r-- | cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json b/cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json new file mode 100644 index 000000000..a75bd3a53 --- /dev/null +++ b/cli/tests/lsp/prepare_call_hierarchy_did_open_notification.json @@ -0,0 +1,12 @@ +{ + "jsonrpc": "2.0", + "method": "textDocument/didOpen", + "params": { + "textDocument": { + "uri": "file:///a/file.ts", + "languageId": "typescript", + "version": 1, + "text": "function foo() {\n return false;\n}\n\nclass Bar {\n baz() {\n return foo();\n }\n}\n\nfunction main() {\n const bar = new Bar();\n bar.baz();\n}\n\nmain();" + } + } +} |
