diff --git a/src/services/breakpoints.ts b/src/services/breakpoints.ts index aa8ec8217ce..f8688b3c479 100644 --- a/src/services/breakpoints.ts +++ b/src/services/breakpoints.ts @@ -194,8 +194,9 @@ module ts.BreakpointResolver { // span in statement return spanInNode((node).statement); - // No breakpoint in interface + // No breakpoint in interface, type alias case SyntaxKind.InterfaceDeclaration: + case SyntaxKind.TypeAliasDeclaration: return undefined; // Tokens: diff --git a/tests/baselines/reference/bpSpan_typealias.baseline b/tests/baselines/reference/bpSpan_typealias.baseline index 51030bfb0a5..88e60b55e47 100644 --- a/tests/baselines/reference/bpSpan_typealias.baseline +++ b/tests/baselines/reference/bpSpan_typealias.baseline @@ -44,21 +44,11 @@ -------------------------------- 6 > type a = m.c; - ~~~~~~~~~~~~~~~~~~ => Pos: (68 to 85) SpanInfo: {"start":16,"length":51} - >module m { - > export class c { - > } - > } - >:=> (line 2, col 4) to (line 5, col 5) + ~~~~~~~~~~~~~~~~~~ => Pos: (68 to 85) SpanInfo: undefined -------------------------------- 7 > export type b = m.c; - ~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (86 to 110) SpanInfo: {"start":16,"length":51} - >module m { - > export class c { - > } - > } - >:=> (line 2, col 4) to (line 5, col 5) + ~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (86 to 110) SpanInfo: undefined -------------------------------- 8 > var x: a = new m.c();