(
fileName: string,
start: number,
end: number,
errorCodes: readonly number[],
formatOptions: ts.FormatCodeSettings,
preferences: ts.UserPreferences,
)
| 271 | } |
| 272 | |
| 273 | function getCodeFixesAtPosition( |
| 274 | fileName: string, |
| 275 | start: number, |
| 276 | end: number, |
| 277 | errorCodes: readonly number[], |
| 278 | formatOptions: ts.FormatCodeSettings, |
| 279 | preferences: ts.UserPreferences, |
| 280 | ): readonly ts.CodeFixAction[] { |
| 281 | if (angularOnly || !isTypeScriptFile(fileName)) { |
| 282 | return ngLS.getCodeFixesAtPosition( |
| 283 | fileName, |
| 284 | start, |
| 285 | end, |
| 286 | errorCodes, |
| 287 | formatOptions, |
| 288 | preferences, |
| 289 | ); |
| 290 | } else { |
| 291 | const tsLsCodeFixes = tsLS.getCodeFixesAtPosition( |
| 292 | fileName, |
| 293 | start, |
| 294 | end, |
| 295 | errorCodes, |
| 296 | formatOptions, |
| 297 | preferences, |
| 298 | ); |
| 299 | // If TS could answer the query, then return that result. Otherwise, return from Angular LS. |
| 300 | return tsLsCodeFixes.length > 0 |
| 301 | ? tsLsCodeFixes |
| 302 | : ngLS.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences); |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | function getCombinedCodeFix( |
| 307 | scope: ts.CombinedCodeFixScope, |
nothing calls this directly
no test coverage detected
searching dependent graphs…