mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
added tests for formatting in try blocks, add startEndOverlapsWithStartEnd
This commit is contained in:
1 parent
b1c2907e21
commit
5bbdbffbc3
6 files changed
+53
-19
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////try
|
||||
////{
|
||||
//// var x = 1/*1*/
|
||||
////}
|
||||
////catch (e)
|
||||
////{
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
edit.insert(";")
|
||||
verify.currentLineContentIs(" var x = 1;");
|
||||
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////switch (1) {
|
||||
//// case 1:
|
||||
//// {
|
||||
//// /*1*/
|
||||
//// break;
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
edit.insert("}");
|
||||
verify.currentLineContentIs(" }");
|
||||
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////if (true) {
|
||||
////}
|
||||
////else {
|
||||
//// if (true) {
|
||||
//// /*1*/
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
edit.insert("}")
|
||||
verify.currentLineContentIs(" }");
|
||||
Reference in new issue
Block a user