TypeScript/tests/cases/fourslash/formatTypeArgumentOnNewLine.ts
Sheetal Nandi cbbbcfa4c5
Fix incorrectly looking for position in call/new expression arguments when looking for indentation of type arguments (#34779)
* Fix incorrectly looking for position in call/new expression arguments when looking for indentation of type arguments
Fixes #32487

* Update src/services/formatting/smartIndenter.ts

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2019-10-28 14:02:09 -07:00

18 lines
400 B
TypeScript

/// <reference path="fourslash.ts"/>
////const genericObject = new GenericObject<
//// /*1*/{}
////>();
////const genericObject2 = new GenericObject2<
//// /*2*/{},
//// /*3*/{}
////>();
format.document();
goTo.marker("1");
verify.currentLineContentIs(" {}");
goTo.marker("2");
verify.currentLineContentIs(" {},");
goTo.marker("3");
verify.currentLineContentIs(" {}");