b2dd610e92
* 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
20 lines
414 B
TypeScript
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);
|
|
|