From 035f7b0ca037aaff37428d339b5f4abc796320fc Mon Sep 17 00:00:00 2001 From: Jean Pierre Date: Fri, 2 Apr 2021 01:21:07 -0500 Subject: feat(lsp): implement textDocument/foldingRange (#9900) Co-authored-by: Kitson Kelly --- cli/tests/lsp/folding_range_did_open_notification.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cli/tests/lsp/folding_range_did_open_notification.json (limited to 'cli/tests/lsp/folding_range_did_open_notification.json') diff --git a/cli/tests/lsp/folding_range_did_open_notification.json b/cli/tests/lsp/folding_range_did_open_notification.json new file mode 100644 index 000000000..938d99751 --- /dev/null +++ b/cli/tests/lsp/folding_range_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": "// #region 1\n/*\n * Some comment\n */\nclass Foo {\n bar(a, b) {\n if (a === b) {\n return true;\n }\n return false;\n }\n}\n// #endregion" + } + } +} -- cgit v1.2.3