Skip to content

Commit

Permalink
- Fixed incorrect location info of namespaces in Super Quick Info
Browse files Browse the repository at this point in the history
- Fixed incorrect variable capture info
  • Loading branch information
wmjordan committed Jun 3, 2019
1 parent 3fb5a15 commit b51f90a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Codist/QuickInfo/CSharpQuickInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public void AugmentQuickInfoSession(IQuickInfoSession session, IList<object> qiC
skipTriggerPointCheck == false && node.Span.Contains(subjectTriggerPoint.Position, true) == false) {
goto EXIT;
}
if (node.Parent.IsKind(SyntaxKind.QualifiedName)) {
node = node.Parent;
}
//if (node.Parent.IsKind(SyntaxKind.QualifiedName)) {
// node = node.Parent;
//}
LocateNodeInParameterList(ref node, ref token);
if (Config.Instance.QuickInfoOptions.MatchFlags(QuickInfoOptions.Parameter)) {
ShowParameterInfo(qiContent, node);
Expand Down Expand Up @@ -316,7 +316,7 @@ void OverrideDocumentation(SyntaxNode node, IQuickInfoOverrider qiWrapper, ISymb
var ss = node.AncestorsAndSelf().FirstOrDefault(i => i is StatementSyntax || i is ExpressionSyntax && i.Kind() != SyntaxKind.IdentifierName);
if (ss != null) {
var df = _SemanticModel.AnalyzeDataFlow(ss);
var captured = ss is StatementSyntax || ss.IsKind(SyntaxKind.InvocationExpression) || ss.IsKind(SyntaxKind.ParenthesizedLambdaExpression) || ss.IsKind(SyntaxKind.SimpleLambdaExpression) ? df.CapturedInside : df.ReadInside;
var captured = ss is StatementSyntax || ss.IsKind(SyntaxKind.InvocationExpression) || ss.IsKind(SyntaxKind.ParenthesizedLambdaExpression) || ss.IsKind(SyntaxKind.SimpleLambdaExpression) ? df.DataFlowsIn : df.ReadInside;
if (captured.Length > 0) {
var p = new ThemedTipParagraph(KnownImageIds.ExternalVariableValue, new ThemedTipText().Append("Captured variables", true));
int i = 0;
Expand Down

0 comments on commit b51f90a

Please sign in to comment.