-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabled completion list entries in template literal parts for the LS.
- Loading branch information
1 parent
d522c88
commit ead3c1b
Showing
3 changed files
with
49 additions
and
4 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
11 changes: 11 additions & 0 deletions
11
tests/cases/fourslash/completionListInTemplateLiteralParts1.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,11 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
/////*0*/` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312`/*5*/ | ||
//// | ||
/////*6*/`asdasd${/*7*/ 2 + 1.1 /*8*/} 12312 { | ||
|
||
test.markers().forEach(marker => { | ||
goTo.position(marker.position); | ||
|
||
verify.completionListItemsCountIsGreaterThan(0) | ||
}} |
11 changes: 11 additions & 0 deletions
11
tests/cases/fourslash/completionListInTemplateLiteralPartsNegatives1.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,11 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
////`/*0*/ /*1*/$ /*2*/{ /*3*/$/*4*/{ 10 + 1.1 }/*5*/ 12312/*6*/` | ||
//// | ||
////`asdasd$/*7*/{ 2 + 1.1 }/*8*/ 12312 /*9*/{/*10*/ | ||
|
||
test.markers().forEach(marker => { | ||
goTo.position(marker.position); | ||
|
||
verify.completionListIsEmpty() | ||
} |
StringOrRegularExpressionOrTemplateLiteral