We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537286b commit fd7a6c5Copy full SHA for fd7a6c5
typescript/src/completions/boostNameSuggestions.ts
@@ -22,7 +22,11 @@ export default (
22
}
23
const statementsNode = nodeWithStatements(node) || nodeWithStatements(node.parent)
24
// Workaround for current locality bonus & TS 5.1
25
- if (statementsNode) {
+ if (
26
+ statementsNode &&
27
+ // ensure completions are not blocked
28
+ entries.length > 0
29
+ ) {
30
const statements = statementsNode.statements as any[]
31
const prevNode =
32
statementsNode === node
0 commit comments