20 lines
436 B
TypeScript
20 lines
436 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////function test() {
|
|
//// /*try*/try {
|
|
//// }
|
|
//// /*catch*/catch (e) {
|
|
//// }
|
|
////}
|
|
|
|
// Running formatting multiple times should not affect the formating of try/catch blocks
|
|
format.document();
|
|
format.document();
|
|
format.document();
|
|
|
|
goTo.marker("try");
|
|
verify.currentLineContentIs(" try {");
|
|
|
|
goTo.marker("catch");
|
|
verify.currentLineContentIs(" catch (e) {");
|