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 0e50da6 commit 9d11fbbCopy full SHA for 9d11fbb
src/services/refactors/extractMethod.ts
@@ -417,7 +417,7 @@ namespace ts.refactor.extractMethod {
417
}
418
419
else {
420
- if (!(permittedJumps & (SyntaxKind.BreakStatement ? PermittedJumps.Break : PermittedJumps.Continue))) {
+ if (!(permittedJumps & (node.kind === SyntaxKind.BreakStatement ? PermittedJumps.Break : PermittedJumps.Continue))) {
421
// attempt to break or continue in a forbidden context
422
(errors || (errors = [])).push(createDiagnosticForNode(node, Messages.CannotExtractRangeContainingConditionalBreakOrContinueStatements));
423
0 commit comments