From 60071c941be503e219830cc50d2ad5e3cc8324a0 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 19 Jun 2021 11:23:50 -0400 Subject: fix(lsp): do not rename in strings and comments (#11041) --- cli/tests/integration_tests_lsp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/integration_tests_lsp.rs b/cli/tests/integration_tests_lsp.rs index 0d203c7f8..1f58c0749 100644 --- a/cli/tests/integration_tests_lsp.rs +++ b/cli/tests/integration_tests_lsp.rs @@ -957,7 +957,8 @@ fn lsp_rename() { "uri": "file:///a/file.ts", "languageId": "typescript", "version": 1, - "text": "let variable = 'a';\nconsole.log(variable);" + // this should not rename in comments and strings + "text": "let variable = 'a'; // variable\nconsole.log(variable);\n\"variable\";\n" } }), ); -- cgit v1.2.3