ContextKeeper/ContextKeeper.VisualStudio

Single document did not restore a split window

Opened this issue ยท 4 comments

Hi,

Following my review at https://marketplace.visualstudio.com/items?itemName=ContextKeeper.ContextKeeperVsix&ssr=false#review-details to clarify my comment, the positioning of single document windows (splitting left,right,top,bottom) worked fine. What didn't appear to work was the vertical split of a single document. So that you can look at line 100 in the top pain, then a horizontal split bar, then line 1000 in the lower pane of the same document window.

Thanks
Phil

Hi Phil! Thanks for clarification and really fast response! Indeed splitting the same document is not supported yet. But it will be supported, if only there is a way to implement it using VS API or any other hack I'll find ๐Ÿคž

Those small details like:

  • horizontal split bar for the same document,
  • opening the same file in multiple windows,

are really important for the whole context. I'm adding a graphical diagram for future reference down below:

image

Unfortunately ChatGPT is hallucinating, there is no such a method like activeWindow.Split() for active window from DTE object. For a second I've had hope that maybe this time it will be a little easier ๐Ÿ˜‰

But the there is good news. After searching through VS internals I've found some promising code that may work!