C# Class SonarLint.VisualStudio.Integration.SourceControlledFileSystem

A general helper class that deals with all the various source control systems integrated with VS (without using any SCC specific APIs). The idea is to checkout files (and notify that about to create new files) by using the IVsQueryEditQuerySave2 service which will in turn notify the source control system and will delegate the rest of the work to it (i.e. checking it out).
Inheritance: ISourceControlledFileSystem
Show file Open project: SonarSource-VisualStudio/sonarlint-visualstudio

Public Methods

Method Description
FileExistOrQueuedToBeWritten ( string filePath ) : bool
QueueFileWrite ( string filePath, Func fileWriteOperation ) : void
SourceControlledFileSystem ( IServiceProvider serviceProvider ) : Microsoft.VisualStudio
WriteQueuedFiles ( ) : bool

Private Methods

Method Description
CheckoutForEdit ( ) : bool
CheckoutForSave ( ) : bool
IFileSystem ( string path ) : bool
IFileSystem ( string path ) : void
SourceControlledFileSystem ( IServiceProvider serviceProvider, IFileSystem fileSystem ) : Microsoft.VisualStudio

Method Details

FileExistOrQueuedToBeWritten() public method

public FileExistOrQueuedToBeWritten ( string filePath ) : bool
filePath string
return bool

QueueFileWrite() public method

public QueueFileWrite ( string filePath, Func fileWriteOperation ) : void
filePath string
fileWriteOperation Func
return void

SourceControlledFileSystem() public method

public SourceControlledFileSystem ( IServiceProvider serviceProvider ) : Microsoft.VisualStudio
serviceProvider IServiceProvider
return Microsoft.VisualStudio

WriteQueuedFiles() public method

public WriteQueuedFiles ( ) : bool
return bool