pass cancellation tokens
This commit is contained in:
@@ -123,7 +123,7 @@ public class RoslynAnalysis
|
||||
// _codeRefactoringProviders.AddRange(refactoringProviders);
|
||||
// }
|
||||
|
||||
await UpdateSolutionDiagnostics();
|
||||
await UpdateSolutionDiagnostics(cancellationToken);
|
||||
// foreach (var project in solution.Projects)
|
||||
// {
|
||||
// // foreach (var document in project.Documents)
|
||||
@@ -495,7 +495,7 @@ public class RoslynAnalysis
|
||||
{
|
||||
using var _ = SharpIdeOtel.Source.StartActivity($"{nameof(RoslynAnalysis)}.{nameof(GetCodeFixesForDocumentAtPosition)}");
|
||||
await _solutionLoadedTcs.Task;
|
||||
var document = await GetDocumentForSharpIdeFile(fileModel);
|
||||
var document = await GetDocumentForSharpIdeFile(fileModel, cancellationToken);
|
||||
Guard.Against.Null(document, nameof(document));
|
||||
var semanticModel = await document.GetSemanticModelAsync(cancellationToken);
|
||||
Guard.Against.Null(semanticModel, nameof(semanticModel));
|
||||
|
||||
@@ -502,7 +502,6 @@ public partial class SharpIdeCodeEdit : CodeEdit
|
||||
|
||||
public override void _ConfirmCodeCompletion(bool replace)
|
||||
{
|
||||
GD.Print("Code completion confirmed");
|
||||
var selectedIndex = GetCodeCompletionSelectedIndex();
|
||||
var selectedText = GetCodeCompletionOption(selectedIndex);
|
||||
if (selectedText is null) return;
|
||||
|
||||
Reference in New Issue
Block a user