From ada43cc56ac2e337cc034f8052d7e5da61268c34 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 27 Jan 2021 07:50:13 +1100 Subject: fix(lsp): handle mbc properly when formatting (#9273) --- cli/tests/lsp/did_open_notification_mbc_fmt.json | 12 ++++++++++++ cli/tests/lsp/formatting_request_mbc_fmt.json | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 cli/tests/lsp/did_open_notification_mbc_fmt.json create mode 100644 cli/tests/lsp/formatting_request_mbc_fmt.json (limited to 'cli/tests') diff --git a/cli/tests/lsp/did_open_notification_mbc_fmt.json b/cli/tests/lsp/did_open_notification_mbc_fmt.json new file mode 100644 index 000000000..528dad25d --- /dev/null +++ b/cli/tests/lsp/did_open_notification_mbc_fmt.json @@ -0,0 +1,12 @@ +{ + "jsonrpc": "2.0", + "method": "textDocument/didOpen", + "params": { + "textDocument": { + "uri": "file:///a/file.ts", + "languageId": "typescript", + "version": 1, + "text": "const bar = 'πŸ‘πŸ‡ΊπŸ‡ΈπŸ˜ƒ'\nconsole.log('hello deno')\n" + } + } +} diff --git a/cli/tests/lsp/formatting_request_mbc_fmt.json b/cli/tests/lsp/formatting_request_mbc_fmt.json new file mode 100644 index 000000000..f20cc18e6 --- /dev/null +++ b/cli/tests/lsp/formatting_request_mbc_fmt.json @@ -0,0 +1,14 @@ +{ + "jsonrpc": "2.0", + "id": 2, + "method": "textDocument/formatting", + "params": { + "textDocument": { + "uri": "file:///a/file.ts" + }, + "options": { + "tabSize": 2, + "insertSpaces": true + } + } +} -- cgit v1.2.3