mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Merge pull request #20233 from amcasey/BlockCompletions
Offer global completions in all blocks
This commit is contained in:
@@ -942,6 +942,7 @@ namespace ts.Completions {
|
||||
scopeNode.kind === SyntaxKind.SourceFile ||
|
||||
scopeNode.kind === SyntaxKind.TemplateExpression ||
|
||||
scopeNode.kind === SyntaxKind.JsxExpression ||
|
||||
scopeNode.kind === SyntaxKind.Block || // Some blocks aren't statements, but all get global completions
|
||||
isStatement(scopeNode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user