diff --git a/lib/IDE/CodeCompletion.cpp b/lib/IDE/CodeCompletion.cpp index 8be58751dfd54..078713dd47795 100644 --- a/lib/IDE/CodeCompletion.cpp +++ b/lib/IDE/CodeCompletion.cpp @@ -2426,6 +2426,12 @@ class CompletionLookup final : public swift::VisibleDeclConsumer { void addMethodCall(const FuncDecl *FD, DeclVisibilityKind Reason) { if (FD->getName().empty()) return; + + // Suppress "sequenced" as a result, because it crashes completions. + // TODO(TF-315): Fix properly and then remove this. + if (FD->getName().str() == "sequenced") + return; + foundFunction(FD); bool IsImplicitlyCurriedInstanceMethod = isImplicitlyCurriedInstanceMethod(FD); diff --git a/test/IDE/complete_tf_315.swift b/test/IDE/complete_tf_315.swift new file mode 100644 index 0000000000000..cd2be15080bcf --- /dev/null +++ b/test/IDE/complete_tf_315.swift @@ -0,0 +1,8 @@ +// SWIFT_ENABLE_TENSORFLOW +// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE | %FileCheck %s + +import TensorFlow +let t = Tensor#^COMPLETE^# + +// CHECK-LABEL: Begin completions +// CHECK: End completions