Back in November 2014, I asked this question about a bug in the code generated for a VS Package in VS 2013. The response was to wait for theConnect item response. So I did.
The Connect response was "For Visual Studio 2015 we are converting this template to a Sample, which will have the proper code", so wait for the VS 2015 samples. So I did.
I have now tried the relevant sample for VS 2015, Editor With Toolbox Sample. It too has the same bug. Repro steps below.
Any help finding a fix would be appreciated.
Repro Steps
- Run the Editor With Toolbox Sample in Debug mode
- From Experimental Instance, create a new project (e.g. c# winforms), or just open an existing one
- File > New > File > Editor With Toolbox - C# Sample > create new instance of custom editor
- Save the file in the project folder and add it to the project in solution explorer
- CLOSE THE CUSTOM EDITOR designer if it's open (e.g. TbxFile1.tbx)
- Reopen it
- WHILE OPEN, RENAME THE FILE in solution explorer (e.g. change to XXX.tbx)
- Type some new lines of text
- Save the file
- Close it and reopen it.
- 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)