lrbarber opened a new issue, #1536:
URL: https://github.com/apache/daffodil-vscode/issues/1536

   ## Description
   
   When you perform a substitution in the editor with a larger block, the 
highlight block grows to match the size of the insertion, but if you then 
revert the substitution, the highlight block maintains the new larger size 
rather than returning to the original size.
   
   ## Steps to Reproduce
   
   With a file open in the Data Editor, enter a search string that is present 
in the file.
   Click "Start Search"
   Enter a replacement string that is longer than the search string.
   Click "Start Replacment"
   Click "Replace the Current Match"
   Click "Revert All Changes"
   Click "Yes" on the pop-up asking if you want to revert all changes.
   
   ## Expected Behavior
   
   When the substitution is reverted, the highlight block should also revert to 
the originally selected block.
   
   ## Actual Behavior
   
   The highlighted block remains the size of the inserted block -- even though 
that change was reverted.
   
   ## Additional Notes and Screenshots (optional) 
   Successful search highlights the found string:
   <img width="1059" height="402" alt="Image" 
src="https://github.com/user-attachments/assets/76d47074-f7fb-4240-abba-e769f15a5fd5";
 />
   Substitution replace found string and highlight expands to show bytes 
changed:
   <img width="1065" height="404" alt="Image" 
src="https://github.com/user-attachments/assets/82047e51-70d6-4e35-9644-2bddfb48e4eb";
 />
   "Revert changes" restores original value to bytes, but the highlight still 
marks all bytes affected by the substitution rather than reverting to the found 
search string:
   <img width="1074" height="413" alt="Image" 
src="https://github.com/user-attachments/assets/fcb89fc5-97e3-475e-8f5c-cecd269e31dc";
 />
   
   ## Environment
   
   - Operating System(s): Windows 11
   - Browser/VS Code version: 1.105.0
   - Extension version: 1.5.0 candidate
   - Daffodil version: 4.0.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to