From 0cf7da62079251cbffa90538f16f5f1fea5aaac8 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 26 Oct 2024 20:25:45 +0200 Subject: [PATCH] Update CompletionProvider.cs --- .../Services/CodeCompletion/Providers/CompletionProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Draco.Compiler/Api/Services/CodeCompletion/Providers/CompletionProvider.cs b/src/Draco.Compiler/Api/Services/CodeCompletion/Providers/CompletionProvider.cs index fa152def5..ed4b0c385 100644 --- a/src/Draco.Compiler/Api/Services/CodeCompletion/Providers/CompletionProvider.cs +++ b/src/Draco.Compiler/Api/Services/CodeCompletion/Providers/CompletionProvider.cs @@ -58,7 +58,8 @@ protected static bool IsAppropriateForContext(ISymbol symbol, CompletionContext or SymbolKind.FunctionGroup or SymbolKind.Local or SymbolKind.Parameter - or SymbolKind.Field => context.HasFlag(CompletionContext.Expression), + or SymbolKind.Field + or SymbolKind.Property => context.HasFlag(CompletionContext.Expression), SymbolKind.Alias => IsAppropriateForContext(((Internal.Symbols.AliasSymbol)symbol).FullResolution, context),