Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/IDE/CodeCompletion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 8 additions & 0 deletions test/IDE/complete_tf_315.swift
Original file line number Diff line number Diff line change
@@ -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