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

   ## Description
   
   In the Data Editor, invalid input to the `Replace` text field shouldn't be 
able to be used in a replace operation. For example `[📙 Emojipedia — 😃 Home of 
Emoji Meanings 💁👌🎍😍](https://emojipedia.org/)` 
   
   However, I'm able to force it to perform the replace operation
   
   ## Steps to Reproduce
   
   1. Open the data editor
   2. Open a sample file. I used 
[staircase_bytes_v.txt](https://github.com/user-attachments/files/23424519/staircase_bytes_v.txt)
   3. Type in a snippet of text in the Search field like `aaa`
   
   <img width="1090" height="588" alt="Image" 
src="https://github.com/user-attachments/assets/3db3b28d-0fc9-47a8-b3df-908aa8a3bacc";
 />
   
   4. Paste some invalid string into the `Replace` field. I used `[📙 Emojipedia 
— 😃 Home of Emoji Meanings 💁👌🎍😍](https://emojipedia.org/)` due to there being 
emoji content
   5. Observe that there's a red warning symbol indication that I can't do the 
replace
   
   <img width="906" height="572" alt="Image" 
src="https://github.com/user-attachments/assets/544848c2-ce76-43cf-b186-a561db356190";
 />
   
   6. Press enter while you have the `Replace` text field highlighted. 
   
   7. Notice how the replace button on the bottom became visible 
   
   <img width="938" height="609" alt="Image" 
src="https://github.com/user-attachments/assets/c573be86-ddfb-42ca-b4e0-a3c330add771";
 />
   
   8. Notice how pressing the replace button performs the replace even though 
the red warning symbol is still there indicating invalid input 
   
   <img width="895" height="556" alt="Image" 
src="https://github.com/user-attachments/assets/8c63db81-72e1-48a4-91df-832215499661";
 />
   
   ## Expected Behavior
   
   IN step 7, the replace button shouldn't show up or it should be grayed out
   
   ## Actual Behavior
   
   See steps to replicate
   
   ## Environment
   
   - Operating System(s): Ubuntu 24.04
   
   - Browser/VS Code version: 
   
   <img width="501" height="316" alt="Image" 
src="https://github.com/user-attachments/assets/9f318646-3288-43b5-a843-86f58c6fdace";
 />
   
     
   - Extension version: 1.5.0 SNAPSHOT
   
   


-- 
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