3eb66da155
* Add code fix to remove unused label * Test with trivia and fix indentation with dedented label
21 lines
329 B
TypeScript
21 lines
329 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noUnusedLocals: true
|
|
|
|
////label1: while (1) {}
|
|
////
|
|
////function f() {
|
|
////label2:
|
|
//// while (1) {}
|
|
////}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "fixUnusedLabel",
|
|
fixAllDescription: "Remove all unused labels",
|
|
newFileContent:
|
|
`while (1) {}
|
|
|
|
function f() {
|
|
while (1) {}
|
|
}`,
|
|
});
|