* add trim trailing whitespace option * set default trimTrailingWhiteSpace to true * add fourslash tests * accept new baselines * only preserce whitespace when setting is explicitly false * format whitespace
27 lines
408 B
TypeScript
27 lines
408 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
////
|
|
////var a;
|
|
////var b
|
|
////
|
|
//////
|
|
////function b(){
|
|
//// while(true){
|
|
//// }
|
|
////}
|
|
////
|
|
|
|
format.setOption("trimTrailingWhitespace", false);
|
|
format.document();
|
|
|
|
verify.currentFileContentIs(`
|
|
var a;
|
|
var b
|
|
|
|
//
|
|
function b() {
|
|
while (true) {
|
|
}
|
|
}
|
|
`);
|