From 8eab0e04f0188a8f19f0eaab2221f58a24ae3f02 Mon Sep 17 00:00:00 2001 From: Jason Malinowski Date: Wed, 29 May 2019 18:27:05 -0700 Subject: [PATCH] Pass a CancellationToken when we have one --- .../CSharp/Portable/InternalUtilities/InternalExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Features/CSharp/Portable/InternalUtilities/InternalExtensions.cs b/src/Features/CSharp/Portable/InternalUtilities/InternalExtensions.cs index 56f784d5b08..708c04d6b0a 100644 --- a/src/Features/CSharp/Portable/InternalUtilities/InternalExtensions.cs +++ b/src/Features/CSharp/Portable/InternalUtilities/InternalExtensions.cs @@ -23,7 +23,7 @@ internal static class InternalExtensions if (argument.Expression.Kind() == SyntaxKind.DeclarationExpression) { var decl = (DeclarationExpressionSyntax)argument.Expression; - typeInfo = semanticModel.GetTypeInfo(decl.Type); + typeInfo = semanticModel.GetTypeInfo(decl.Type, cancellationToken); return typeInfo.Type?.IsErrorType() == false ? typeInfo.Type : semanticModel.Compilation.ObjectType; } -- GitLab