C# Class VSSonarExtensionUi.Model.Configuration.RoslynManagerModel

Roslyn manager model
Inheritance: IOptionsModelBase
Afficher le fichier Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Méthodes publiques

Méthode Description
AddNewRoslynPack ( string dllPath, bool updateProps ) : bool

Adds the new roslyn pack.

AssociateWithNewProject ( Resource project, string workDir, ISourceControlProvider sourceModelIn, Profile>.Dictionary profile, string visualStudioVersion ) : void

Associates the with new project.

AutoDetectInstalledAnalysers ( ) : string

Automatics the detect installed analyzers.

GetViewModel ( ) : object

Gets the view model.

InitializedServerDiagnostics ( ISonarConfiguration authentication ) : void

Initializes the installed diagnostics.

OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin issuePlugin ) : void

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnSolutionClosed ( ) : void

The end data association.

ReloadDataFromDisk ( Resource associatedProjectIn ) : void

Reloads the data from disk.

RoslynManagerModel ( IEnumerable pluginsIn, INotificationManager notificationManagerIn, IConfigurationHelper configHelper, ISonarRestService rest ) : System

Initializes a new instance of the RoslynManagerModel class.

SaveData ( ) : void

Saves the data.

SyncDiagnosticsInPlugins ( ) : void

Synchronizes the diagnostics in plugins.

UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider ) : void

Updates the services.

VerifyExistenceOfRoslynPlugin ( ) : bool

Verifies the existence of roslyn plugin.

Private Methods

Méthode Description
CombineDiagnostics ( ) : List

Combines the diagnostics.

CreateRule ( string language, Microsoft.CodeAnalysis.DiagnosticDescriptor diag ) : void
GetLanguage ( string lang ) : string
GetRuleFromProfile ( string lang, string id ) : Rule
LoadDiagnosticsFromPath ( string folderPath, bool syncInServer ) : void
RemoveDllFromList ( VSSonarExtensionDiagnostic selectedDllDiagnostic ) : void

Removes the DLL from list.

SyncDiagnosticInServer ( VSSonarExtensionDiagnostic diagnostic ) : void

Synchronizes the diagnostic in server.

SyncSettings ( ) : void

Synchronizes the settings.

Method Details

AddNewRoslynPack() public méthode

Adds the new roslyn pack.
public AddNewRoslynPack ( string dllPath, bool updateProps ) : bool
dllPath string The DLL path.
updateProps bool
Résultat bool

AssociateWithNewProject() public méthode

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workDir, ISourceControlProvider sourceModelIn, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workDir string The work directory.
sourceModelIn ISourceControlProvider The source model in.
profile Profile>.Dictionary
visualStudioVersion string
Résultat void

AutoDetectInstalledAnalysers() public méthode

Automatics the detect installed analyzers.
public AutoDetectInstalledAnalysers ( ) : string
Résultat string

GetViewModel() public méthode

Gets the view model.
public GetViewModel ( ) : object
Résultat object

InitializedServerDiagnostics() public méthode

Initializes the installed diagnostics.
public InitializedServerDiagnostics ( ISonarConfiguration authentication ) : void
authentication ISonarConfiguration
Résultat void

OnConnectToSonar() public méthode

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin issuePlugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjects IEnumerable
issuePlugin IIssueTrackerPlugin
Résultat void

OnDisconnect() public méthode

Called when [disconnect].
public OnDisconnect ( ) : void
Résultat void

OnSolutionClosed() public méthode

The end data association.
public OnSolutionClosed ( ) : void
Résultat void

ReloadDataFromDisk() public méthode

Reloads the data from disk.
public ReloadDataFromDisk ( Resource associatedProjectIn ) : void
associatedProjectIn Resource The associated project in.
Résultat void

RoslynManagerModel() public méthode

Initializes a new instance of the RoslynManagerModel class.
public RoslynManagerModel ( IEnumerable pluginsIn, INotificationManager notificationManagerIn, IConfigurationHelper configHelper, ISonarRestService rest ) : System
pluginsIn IEnumerable The plugins in.
notificationManagerIn INotificationManager The notification manager in.
configHelper IConfigurationHelper The configuration helper.
rest ISonarRestService
Résultat System

SaveData() public méthode

Saves the data.
public SaveData ( ) : void
Résultat void

SyncDiagnosticsInPlugins() public méthode

Synchronizes the diagnostics in plugins.
public SyncDiagnosticsInPlugins ( ) : void
Résultat void

UpdateServices() public méthode

Updates the services.
public UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vs environment helper in.
statusBar IVSSStatusBar The status bar.
provider IServiceProvider The provider.
Résultat void

VerifyExistenceOfRoslynPlugin() public méthode

Verifies the existence of roslyn plugin.
public VerifyExistenceOfRoslynPlugin ( ) : bool
Résultat bool