Skip to content

Commit

Permalink
fix(Handlers.Rename): Do not rename in string or commends, restore fi…
Browse files Browse the repository at this point in the history
…le rename

As noted by @Myrslaver in #157
  • Loading branch information
razzmatazz committed May 21, 2024
1 parent 2bdcec7 commit ccee0ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
* Do not rename symbol in strings or comments, restore file rename
- As reported by @Myrslaver in https://github.com/razzmatazz/csharp-language-server/issues/157
* Stop collecting symbols in method body
- By Adam Tao @tcx4c70
* Fix TypeHierarchy registration
Expand Down
2 changes: 1 addition & 1 deletion src/CSharpLanguageServer/Handlers/Rename.fs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module Rename =
Renamer.RenameSymbolAsync(
doc.Project.Solution,
symbol,
SymbolRenameOptions(RenameOverloads = true, RenameInStrings = true, RenameInComments = true),
SymbolRenameOptions(RenameOverloads = true, RenameFile = true),
p.NewName,
ct
)
Expand Down

0 comments on commit ccee0ef

Please # to comment.