You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perform a find and replace entering "Block.FeatureCard" to the find and "Block.Cards" for the replace
Click the replace all button
Look in the cs files and see it worked fine, but look in the cshtml files and notice that a line like "@using NewProj.Blocks.FeatureCard.Simple" is replaced with "@using NewProj.BBlocks.CardsSimple". Notice the B is duplicated and the '.' before "Simple" is missing.
Note: This does not seem to happen if you manually replace them one by one in the find pane. Only seems to happen when clicking replace all.
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered:
VSCode Version: Code 1.17 (be377c0, 2017-10-04T23:44:50.318Z)
OS Version: Windows 10 Home x64 10.0.15063
I've seen that same behaviour before on .cs files and managed to get a print of it this time:
As you can see from the print the first line will get changed to "using InsertSolutionNamespaceHere.Domain.Repositorios;" to "using ISolutionNamespaceDomain.Repositorios;" instead of "using SolutionNamespace.Domain.Repositorios;" as expected. The line 6 will be changed properly though.
If it helps the code of the print is from the following commit: (thomazmoura/Generator.DotNetSolution@4bf3605) and the replace all parameters was from "InsertSolutionNamespaceHere" to "SolutionNamespace". It happens even if I open code with --disable-extensions.
Thanks for the example, I can repro! This is because the file has a BOM, and our search tool counts that as a character in the first line. Any search result on the first line of a file with a BOM will be shifted by a character.
roblourens
changed the title
Find and Replace for cshtml pages seems to be shifted
Find and Replace for "UTF-8 with BOM" files shifted on first line by a character
Oct 9, 2017
roblourens
changed the title
Find and Replace for "UTF-8 with BOM" files shifted on first line by a character
Search result for "UTF-8 with BOM" files shifted on first line by a character
Oct 9, 2017
Steps to Reproduce:
Note: This does not seem to happen if you manually replace them one by one in the find pane. Only seems to happen when clicking replace all.
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: