C# Class VSSonarExtensionUi.Model.Configuration.RoslynManagerModel

Roslyn manager model
Inheritance: IOptionsModelBase
Show file Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Public Methods

Method 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

Method 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 method

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

AssociateWithNewProject() public method

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
return void

AutoDetectInstalledAnalysers() public method

Automatics the detect installed analyzers.
public AutoDetectInstalledAnalysers ( ) : string
return string

GetViewModel() public method

Gets the view model.
public GetViewModel ( ) : object
return object

InitializedServerDiagnostics() public method

Initializes the installed diagnostics.
public InitializedServerDiagnostics ( ISonarConfiguration authentication ) : void
authentication ISonarConfiguration
return void

OnConnectToSonar() public method

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

OnDisconnect() public method

Called when [disconnect].
public OnDisconnect ( ) : void
return void

OnSolutionClosed() public method

The end data association.
public OnSolutionClosed ( ) : void
return void

ReloadDataFromDisk() public method

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

RoslynManagerModel() public method

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
return System

SaveData() public method

Saves the data.
public SaveData ( ) : void
return void

SyncDiagnosticsInPlugins() public method

Synchronizes the diagnostics in plugins.
public SyncDiagnosticsInPlugins ( ) : void
return void

UpdateServices() public method

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.
return void

VerifyExistenceOfRoslynPlugin() public method

Verifies the existence of roslyn plugin.
public VerifyExistenceOfRoslynPlugin ( ) : bool
return bool