Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Fix for VSSDK-Extensibility-Samples Bug When Editor Rename File

$
0
0

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

  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)

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>