(
fileName: string,
start: number,
end: number,
errorCodes: readonly number[],
formatOptions: ts.FormatCodeSettings,
preferences: ts.UserPreferences,
)
| 288 | } |
| 289 | |
| 290 | function getCodeFixesAtPosition( |
| 291 | fileName: string, |
| 292 | start: number, |
| 293 | end: number, |
| 294 | errorCodes: readonly number[], |
| 295 | formatOptions: ts.FormatCodeSettings, |
| 296 | preferences: ts.UserPreferences, |
| 297 | ): readonly ts.CodeFixAction[] { |
| 298 | if (angularOnly || !isTypeScriptFile(fileName)) { |
| 299 | return ngLS.getCodeFixesAtPosition( |
| 300 | fileName, |
| 301 | start, |
| 302 | end, |
| 303 | errorCodes, |
| 304 | formatOptions, |
| 305 | preferences, |
| 306 | ); |
| 307 | } else { |
| 308 | const tsLsCodeFixes = tsLS.getCodeFixesAtPosition( |
| 309 | fileName, |
| 310 | start, |
| 311 | end, |
| 312 | errorCodes, |
| 313 | formatOptions, |
| 314 | preferences, |
| 315 | ); |
| 316 | // If TS could answer the query, then return that result. Otherwise, return from Angular LS. |
| 317 | return tsLsCodeFixes.length > 0 |
| 318 | ? tsLsCodeFixes |
| 319 | : ngLS.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | function getCombinedCodeFix( |
| 324 | scope: ts.CombinedCodeFixScope, |
nothing calls this directly
no test coverage detected