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

Why source control does not see that a file is under source control?

$
0
0

One of the files in a custom project is not recognized by the source control plugin as being under source control.

- We are extending Visual Studio Isolated shell 2010 sp 1

- We use MPF 10.1

- We support MSSCCI source control interface.

- After creating a project, the user can choose to add it to source control

- All the files, visible in the solution explorer, are added to the source control (VSS, TFS, etc.)

- When trying to change the contents of the files (in a document editor), we invoke IVsQueryEditQuerySave2.QueryEditFiles().

- For most of the files, we get the "Checkout for Edit" message (depending on the SCC tools options settings, of course).

- For one specific file, we do not get this message. The method QueryEditFiles returns with "In Memory Edit" flag set.

- When I break in the debugger and run this in the intermediate window: DTE.SourceControl.IsItemUnderSCC( <path to the file> ), the method returns false for this specific file, but true for all others.

The failing file is special in the sense that it is a dependency of another file and it has dependencies of its own. However, ever when I remove these dependencies, the problem persists.

I also tried to use different name and file extension but to no avail.

The problem occurs with VSS and TFS, so I guess the provider is not the issue.



Viewing all articles
Browse latest Browse all 4410

Trending Articles



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