microsoft / VSSDK-Extensibility-Samples

Samples for building your own Visual Studio extensions
http://aka.ms/extendvs
MIT License
1.21k stars 451 forks source link

Bug in Editor With Toolbox Sample When Rename File #18

Open wadecb opened 8 years ago

wadecb commented 8 years ago
  1. Run the Editor With Toolbox Sample in Debug mode
  2. From Experimental Instance, create a new project (e.g. c# winforms), or just open an existing one
  3. File > New > File > Editor With Toolbox - C# Sample > create new instance of custom editor
  4. Save the file in the project folder and add it to the project in solution explorer
  5. CLOSE THE CUSTOM EDITOR designer if it's open (e.g. TbxFile1.tbx)
  6. Reopen it
  7. WHILE OPEN, RENAME THE FILE in solution explorer (e.g. change to XXX.tbx)
  8. Type some new lines of text
  9. Save the file
  10. Close it and reopen it.
  11. New text is not there. If you look in the project folder, you will see it saved the file using the old file name (TbxFile1.tbx)

Also went through the steps in this youtube video: https://youtu.be/pY5uitIIbkA

bertique commented 8 years ago

Thanks for the detailed steps + video.

wadecb commented 8 years ago

You're welcome!