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
Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio

Méthodes publiques

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

Private Methods

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

Method Details

FileExistOrQueuedToBeWritten() public méthode

public FileExistOrQueuedToBeWritten ( string filePath ) : bool
filePath string
Résultat bool

QueueFileWrite() public méthode

public QueueFileWrite ( string filePath, Func fileWriteOperation ) : void
filePath string
fileWriteOperation Func
Résultat void

SourceControlledFileSystem() public méthode

public SourceControlledFileSystem ( IServiceProvider serviceProvider ) : Microsoft.VisualStudio
serviceProvider IServiceProvider
Résultat Microsoft.VisualStudio

WriteQueuedFiles() public méthode

public WriteQueuedFiles ( ) : bool
Résultat bool