Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't try to add related diagnostic for closing bracket when parser c…
…an't find opening bracket
- Loading branch information
1 parent
3f9e724
commit 70e8a60
Showing
6 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
////do {/*1*/ | ||
|
||
goTo.marker("1"); | ||
edit.insert("\n"); | ||
verify.indentationIs(4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
////if /*1*/ | ||
|
||
goTo.marker("1"); | ||
edit.insert("\n"); | ||
verify.indentationIs(4); |
7 changes: 7 additions & 0 deletions
7
tests/cases/fourslash/smartIndentMissingBracketsWhileKeyword.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
////while /*1*/ | ||
|
||
goTo.marker("1"); | ||
edit.insert("\n"); | ||
verify.indentationIs(4); |
7 changes: 7 additions & 0 deletions
7
tests/cases/fourslash/smartIndentMissingBracketsWithKeyword.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
////with /*1*/ | ||
|
||
goTo.marker("1"); | ||
edit.insert("\n"); | ||
verify.indentationIs(0); |