method stub
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<MudTreeViewItem T="string" TextTypo="Typo.body2" EndTextTypo="Typo.caption" Expanded="false" Icon="@Icons.Material.Filled.Code" IconColor="Color.Success" Value="@ProjectModel.Name" Text="@ProjectModel.Name" EndText="@($"{_diagnostics.Length} diagnostics")">
|
<MudTreeViewItem T="string" TextTypo="Typo.body2" EndTextTypo="Typo.caption" Expanded="false" Icon="@Icons.Material.Filled.Code" IconColor="Color.Success" Value="@ProjectModel.Name" Text="@ProjectModel.Name" EndText="@($"{_diagnostics.Length} diagnostics")">
|
||||||
@foreach (var diagnostic in _diagnostics)
|
@foreach (var diagnostic in _diagnostics)
|
||||||
{
|
{
|
||||||
<MudTreeViewItem T="string" TextTypo="Typo.body2" Icon="@Icons.Material.Filled.Warning" IconColor="@GetDiagnosticIconColour(diagnostic)" Value="@diagnostic.ToString()">
|
<MudTreeViewItem T="string" TextTypo="Typo.body2" OnClick="@(async () => await OpenDocumentContainingDiagnostic(diagnostic))" Icon="@Icons.Material.Filled.Warning" IconColor="@GetDiagnosticIconColour(diagnostic)" Value="@diagnostic.ToString()">
|
||||||
<BodyContent>
|
<BodyContent>
|
||||||
<MudText Typo="Typo.body2">
|
<MudText Typo="Typo.body2">
|
||||||
@diagnostic.GetMessage()
|
@diagnostic.GetMessage()
|
||||||
@@ -34,6 +34,11 @@
|
|||||||
_ => Color.Info
|
_ => Color.Info
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private async Task OpenDocumentContainingDiagnostic(Diagnostic diagnostic)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
var diagnostics = await RoslynAnalysis.GetProjectDiagnostics(ProjectModel);
|
var diagnostics = await RoslynAnalysis.GetProjectDiagnostics(ProjectModel);
|
||||||
|
|||||||
Reference in New Issue
Block a user