Fix multiline name
This commit is contained in:
parent
33333e86eb
commit
97de811d48
|
@ -398,7 +398,7 @@ declare namespace FourSlashInterface {
|
||||||
organizeImports(newContent: string): void;
|
organizeImports(newContent: string): void;
|
||||||
|
|
||||||
toggleLineComment(newFileContent: string): void;
|
toggleLineComment(newFileContent: string): void;
|
||||||
toggleBlockComment(newFileContent: string): void;
|
toggleMultilineComment(newFileContent: string): void;
|
||||||
}
|
}
|
||||||
class edit {
|
class edit {
|
||||||
backspace(count?: number): void;
|
backspace(count?: number): void;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Simple block comment and uncomment.
|
// Simple multiline comment and uncomment.
|
||||||
|
|
||||||
//// let var1[| = 1;
|
//// let var1[| = 1;
|
||||||
//// let var2 = 2;
|
//// let var2 = 2;
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
//// let var8 = 2;
|
//// let var8 = 2;
|
||||||
//// let var9 = 3;*/|]
|
//// let var9 = 3;*/|]
|
||||||
|
|
||||||
verify.toggleBlockComment(
|
verify.toggleMultilineComment(
|
||||||
`let var1/* = 1;
|
`let var1/* = 1;
|
||||||
let var2 = 2;
|
let var2 = 2;
|
||||||
let var3 */= 3;
|
let var3 */= 3;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
//// let var11 = 2;
|
//// let var11 = 2;
|
||||||
//// /*let var12|] = 3;*/
|
//// /*let var12|] = 3;*/
|
||||||
|
|
||||||
verify.toggleBlockComment(
|
verify.toggleMultilineComment(
|
||||||
`let var1/* = 1;
|
`let var1/* = 1;
|
||||||
let var2 *//*= 2;
|
let var2 *//*= 2;
|
||||||
let var3 *//*= 3;*/
|
let var3 *//*= 3;*/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/// <reference path="fourslash.ts">
|
/// <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 va[|r1 = 1;
|
||||||
//// let var2 = 2;
|
//// let var2 = 2;
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
//// let var8 = 2;
|
//// let var8 = 2;
|
||||||
//// // let var9|] = 3;
|
//// // let var9|] = 3;
|
||||||
|
|
||||||
verify.toggleBlockComment(
|
verify.toggleMultilineComment(
|
||||||
`/*// let var1 = 1;
|
`/*// let var1 = 1;
|
||||||
let var2 = 2;
|
let var2 = 2;
|
||||||
// let var3*/ = 3;
|
// let var3*/ = 3;
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
//// </MyContainer>;
|
//// </MyContainer>;
|
||||||
//// const e = <MyComponent>[|{'foo'}|]</MyComponent>;
|
//// const e = <MyComponent>[|{'foo'}|]</MyComponent>;
|
||||||
|
|
||||||
verify.toggleBlockComment(
|
verify.toggleMultilineComment(
|
||||||
`const a = <div tabIndex="0">{/*</div>;*/}
|
`const a = <div tabIndex="0">{/*</div>;*/}
|
||||||
const b = <div>This is {/*valid HTML &*/} JSX at the same time.</div>;
|
const b = <div>This is {/*valid HTML &*/} JSX at the same time.</div>;
|
||||||
const c = <MyContainer>
|
const c = <MyContainer>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Jsx uses multiline comments for each line commented.
|
// 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.
|
// There's some variations between jsx and js comments depending on the position.
|
||||||
|
|
||||||
//@Filename: file.tsx
|
//@Filename: file.tsx
|
||||||
|
|
Loading…
Reference in a new issue