Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 3b03e24

Browse files
committed
Pass conditional symbols to completion engine.
1 parent a65ad38 commit 3b03e24

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ private CSharpCompletionContext(ITextEditor editor, CSharpFullParseInformation p
9090
this.ProjectContent = projectContent;
9191
this.TypeResolveContextAtCaret = parseInfo.UnresolvedFile.GetTypeResolveContext(compilation, caretLocation);
9292
this.CompletionContextProvider = new DefaultCompletionContextProvider(document, parseInfo.UnresolvedFile);
93+
this.CompletionContextProvider.ConditionalSymbols.AddRange(parseInfo.SyntaxTree.ConditionalSymbols);
9394
}
9495
}
9596
}

0 commit comments

Comments
 (0)