TypeScript/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts
Mohamed Hegazy b2dd610e92
Fix ignore message indentation (#22340)
* Update baselines for user tests

* Add explicit indentation

* Fix https://github.com/Microsoft/TypeScript/issues/21355: Format `// @ts-ignore` added by quick fix

* Extract check to a separate function

* Consolidate checking for valid insert location

* Code review comments

* Do not return makeChange
2018-03-06 12:19:19 -08:00

20 lines
414 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowjs: true
// @noEmit: true
// @checkJs: true
// @Filename: a.js
////var x = 0;
////
////function f(_a) {[|
//// /** comment for f */
//// f(x());
////|]}
// Disable checking for next line
verify.rangeAfterCodeFix(` /** comment for f */
// @ts-ignore
f(x());`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);