Skip to content

Commit 15c4cee

Browse files
committed
fix completion trigger in non-workspace files
1 parent fd71b20 commit 15c4cee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ private static async Task<ImmutableArray<CodeAction>> GetCodeRefactoringsFromDef
787787
public async Task<bool> ShouldTriggerCompletionAsync(SharpIdeFile file, string documentText, LinePosition linePosition, CompletionTrigger completionTrigger, CancellationToken cancellationToken = default)
788788
{
789789
await _solutionLoadedTcs.Task;
790+
if (file.IsRoslynWorkspaceFile is false) return false;
790791
var document = await GetDocumentForSharpIdeFile(file, cancellationToken);
791792
var completionService = CompletionService.GetService(document);
792793
if (completionService is null) throw new InvalidOperationException("Completion service is not available for the document.");

0 commit comments

Comments
 (0)