summaryrefslogtreecommitdiff
path: root/cli/tests/lsp/did_open_params_doc_symbol.json
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-05-18 06:45:13 +1000
committerGitHub <noreply@github.com>2021-05-18 06:45:13 +1000
commit27e7bb090e9d771c8f3e4ddba4dd956a4a56855b (patch)
tree82cb99c1406fc94850bc3d5d66f8db40300860de /cli/tests/lsp/did_open_params_doc_symbol.json
parentaecdbba2c25d08d771a4e4fbeb62cac60015a3bd (diff)
refactor: share test harness for lsp between bench and integration (#10659)
Diffstat (limited to 'cli/tests/lsp/did_open_params_doc_symbol.json')
-rw-r--r--cli/tests/lsp/did_open_params_doc_symbol.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/lsp/did_open_params_doc_symbol.json b/cli/tests/lsp/did_open_params_doc_symbol.json
new file mode 100644
index 000000000..c74877191
--- /dev/null
+++ b/cli/tests/lsp/did_open_params_doc_symbol.json
@@ -0,0 +1,8 @@
+{
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "languageId": "typescript",
+ "version": 1,
+ "text": "interface IFoo {\n foo(): boolean;\n}\n\nclass Bar implements IFoo {\n constructor(public x: number) { }\n foo() { return true; }\n /** @deprecated */\n baz() { return false; }\n get value(): number { return 0; }\n set value(newVavlue: number) { return; }\n static staticBar = new Bar(0);\n private static getStaticBar() { return Bar.staticBar; }\n}\n\nenum Values { value1, value2 }\n\nvar bar: IFoo = new Bar(3);"
+ }
+}