views:

215

answers:

4

Arg! I have a custom "harness" executable running my class library project. Every time I step into the harness's code, I get that "No Source Available" pane popping up. As I know there is no source available, and that this is completely expected, I don't want this very intrusive and useless pane popping up every time. How can I suppress it completely?

I can make it smaller at least by making that window part of another smaller pane-set, such as with the watches/locals. It remembers its location from run to run, but its still useless.

There might be a more general answer to this question - how can I suppress any particular pane/window from showing at all? I have a VSX package, originally built for VS 2008 (and must keep that compatibility) but I just don't know what command to run to do it. (I had the package commissioned, so I have the source, but not the know-how. This seems like a one/two liner).

Thanks!

A: 

Hi Jason,

I have exactly the same problem and I don't know why each time Microsoft release a new version of Visual Studio, things like that happen.

When I typed "Ctrl+Break" to edit my code at runtime, I don't want to show a panel that tells me that no source are available; my source IS AVAILABLE, this is the code that I have right in front of me.

I will investigate and if I found a solution, I will show you.

Why it is so complicated to put a checkbox "Don't show me this panel again" ???

Samuel
Hi Samuel, just FYI, this probably would've been more appropriate as a comment on the post itself, rather than as an answer. If we want to get an answer, we need the people who know to realize that the problem has yet to be solved. :-)
uosɐſ
+1  A: 

After finding no help on this, I dug in to it myself and fixed it by Hiding the WindowFrame in the event that it is shown. There is no visual refresh glitch that I've seen so far.

Here is the GUID for the "No Source Available" pane: {1820bae5-c385-4492-9de5-e35c9cf17b18}

I found most of what I needed from this post:

http://blogs.msdn.com/dr._ex/archive/2004/11/07/253601.aspx

I believe this will only affect solutions with this package loaded, but really I don't know if the package stays loaded/active if the related project is closed.

uosɐſ
Can you provide more details what you did? I didn't quite understand
Sameer Alibhai
That's a broad question. Can you be more specific about your scenario? Maybe ask a brand new question and then post a link in a comment below - and link to this one for the new one as background?
uosɐſ
A: 

This worked for me:

Tools > Options > Debugging and untick Enable Just My Code

(thanks to this)

jay
A: 

The solution is here: http://stackoverflow.com/questions/2806993/no-source-available

Sire

related questions