diff --git a/Codist/Helpers/SemanticContext.cs b/Codist/Helpers/SemanticContext.cs index bd7c52f6..18e16557 100644 --- a/Codist/Helpers/SemanticContext.cs +++ b/Codist/Helpers/SemanticContext.cs @@ -301,7 +301,7 @@ public List GetContainingNodes(SnapshotPoint start, bool includeSynt node = node.Parent; } nodes.Reverse(); - if (includeRegions == false) { + if (includeRegions == false || _OutliningManager == null) { return nodes; } foreach (var region in GetRegions(start)) {