Skip to content

Commit 97de811

Browse files
author
Armando Aguirre
committed
Fix multiline name
1 parent 33333e8 commit 97de811

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/cases/fourslash/fourslash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ declare namespace FourSlashInterface {
398398
organizeImports(newContent: string): void;
399399

400400
toggleLineComment(newFileContent: string): void;
401-
toggleBlockComment(newFileContent: string): void;
401+
toggleMultilineComment(newFileContent: string): void;
402402
}
403403
class edit {
404404
backspace(count?: number): void;

tests/cases/fourslash/toggleMultilineComment1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Simple block comment and uncomment.
1+
// Simple multiline comment and uncomment.
22

33
//// let var1[| = 1;
44
//// let var2 = 2;
@@ -12,7 +12,7 @@
1212
//// let var8 = 2;
1313
//// let var9 = 3;*/|]
1414

15-
verify.toggleBlockComment(
15+
verify.toggleMultilineComment(
1616
`let var1/* = 1;
1717
let var2 = 2;
1818
let var3 */= 3;

tests/cases/fourslash/toggleMultilineComment2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//// let var11 = 2;
1818
//// /*let var12|] = 3;*/
1919

20-
verify.toggleBlockComment(
20+
verify.toggleMultilineComment(
2121
`let var1/* = 1;
2222
let var2 *//*= 2;
2323
let var3 *//*= 3;*/

tests/cases/fourslash/toggleMultilineComment3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="fourslash.ts">
22

3-
// If range is inside a single line comment, just add the block comment.
3+
// If range is inside a single line comment, just add the multiline comment.
44

55
//// // let va[|r1 = 1;
66
//// let var2 = 2;
@@ -14,7 +14,7 @@
1414
//// let var8 = 2;
1515
//// // let var9|] = 3;
1616

17-
verify.toggleBlockComment(
17+
verify.toggleMultilineComment(
1818
`/*// let var1 = 1;
1919
let var2 = 2;
2020
// let var3*/ = 3;

tests/cases/fourslash/toggleMultilineComment5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//// </MyContainer>;
1616
//// const e = <MyComponent>[|{'foo'}|]</MyComponent>;
1717

18-
verify.toggleBlockComment(
18+
verify.toggleMultilineComment(
1919
`const a = <div tabIndex="0">{/*</div>;*/}
2020
const b = <div>This is {/*valid HTML &amp;*/} JSX at the same time.</div>;
2121
const c = <MyContainer>

tests/cases/fourslash/toggleMultilineComment6.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jsx uses multiline comments for each line commented.
22

3-
// Selection is outside of a block comments inserts block comments instead of removing.
3+
// Selection is outside of a multiline comments inserts multiline comments instead of removing.
44
// There's some variations between jsx and js comments depending on the position.
55

66
//@Filename: file.tsx

0 commit comments

Comments
 (0)