mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(lsp): do not rename in strings and comments (#11041)
This commit is contained in:
parent
2ea41d3ac1
commit
60071c941b
3 changed files with 18 additions and 10 deletions
|
@ -1766,13 +1766,14 @@ impl Inner {
|
|||
)));
|
||||
};
|
||||
|
||||
let req = tsc::RequestMethod::FindRenameLocations((
|
||||
let req = tsc::RequestMethod::FindRenameLocations {
|
||||
specifier,
|
||||
line_index.offset_tsc(params.text_document_position.position)?,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
));
|
||||
position: line_index
|
||||
.offset_tsc(params.text_document_position.position)?,
|
||||
find_in_strings: false,
|
||||
find_in_comments: false,
|
||||
provide_prefix_and_suffix_text_for_rename: false,
|
||||
};
|
||||
|
||||
let maybe_locations: Option<Vec<tsc::RenameLocation>> = self
|
||||
.ts_server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue