summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests_lsp.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-06-19 11:23:50 -0400
committerGitHub <noreply@github.com>2021-06-19 11:23:50 -0400
commit60071c941be503e219830cc50d2ad5e3cc8324a0 (patch)
treeed76f3b43f73ff837d5b1367a1530d65cd09de87 /cli/tests/integration_tests_lsp.rs
parent2ea41d3ac159e4c2e998d13412dc19680b01a6ca (diff)
fix(lsp): do not rename in strings and comments (#11041)
Diffstat (limited to 'cli/tests/integration_tests_lsp.rs')
-rw-r--r--cli/tests/integration_tests_lsp.rs3
1 files changed, 2 insertions, 1 deletions
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"
}
}),
);