Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jun 18, 2021
1 parent 8940d22 commit 87a3cd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/tests/integration_tests_lsp.rs
Expand Up @@ -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"
}
}),
);
Expand Down

0 comments on commit 87a3cd6

Please sign in to comment.