diff --git a/src/services/outliningElementsCollector.ts b/src/services/outliningElementsCollector.ts index 53509ec3c1f..8d453679aad 100644 --- a/src/services/outliningElementsCollector.ts +++ b/src/services/outliningElementsCollector.ts @@ -40,7 +40,7 @@ module ts { if (node && startElement && endElement) { var span: OutliningSpan = { textSpan: TypeScript.TextSpan.fromBounds(startElement.pos, endElement.end), - hintSpan: TypeScript.TextSpan.fromBounds(node.pos, node.end), + hintSpan: TypeScript.TextSpan.fromBounds(node.getStart(), node.end), bannerText: "...", autoCollapse: false };