Fix multiline name

This commit is contained in:
Armando Aguirre 2020-02-20 17:02:17 -08:00
parent 33333e86eb
commit 97de811d48
6 changed files with 8 additions and 8 deletions

View file

@ -398,7 +398,7 @@ declare namespace FourSlashInterface {
organizeImports(newContent: string): void;
toggleLineComment(newFileContent: string): void;
toggleBlockComment(newFileContent: string): void;
toggleMultilineComment(newFileContent: string): void;
}
class edit {
backspace(count?: number): void;

View file

@ -1,4 +1,4 @@
// Simple block comment and uncomment.
// Simple multiline comment and uncomment.
//// let var1[| = 1;
//// let var2 = 2;
@ -12,7 +12,7 @@
//// let var8 = 2;
//// let var9 = 3;*/|]
verify.toggleBlockComment(
verify.toggleMultilineComment(
`let var1/* = 1;
let var2 = 2;
let var3 */= 3;

View file

@ -17,7 +17,7 @@
//// let var11 = 2;
//// /*let var12|] = 3;*/
verify.toggleBlockComment(
verify.toggleMultilineComment(
`let var1/* = 1;
let var2 *//*= 2;
let var3 *//*= 3;*/

View file

@ -1,6 +1,6 @@
/// <reference path="fourslash.ts">
// If range is inside a single line comment, just add the block comment.
// If range is inside a single line comment, just add the multiline comment.
//// // let va[|r1 = 1;
//// let var2 = 2;
@ -14,7 +14,7 @@
//// let var8 = 2;
//// // let var9|] = 3;
verify.toggleBlockComment(
verify.toggleMultilineComment(
`/*// let var1 = 1;
let var2 = 2;
// let var3*/ = 3;

View file

@ -15,7 +15,7 @@
//// </MyContainer>;
//// const e = <MyComponent>[|{'foo'}|]</MyComponent>;
verify.toggleBlockComment(
verify.toggleMultilineComment(
`const a = <div tabIndex="0">{/*</div>;*/}
const b = <div>This is {/*valid HTML &amp;*/} JSX at the same time.</div>;
const c = <MyContainer>

View file

@ -1,6 +1,6 @@
// Jsx uses multiline comments for each line commented.
// Selection is outside of a block comments inserts block comments instead of removing.
// Selection is outside of a multiline comments inserts multiline comments instead of removing.
// There's some variations between jsx and js comments depending on the position.
//@Filename: file.tsx