MCPcopy Index your code
hub / github.com/angular/angular / getCodeFixesAtPosition

Function getCodeFixesAtPosition

packages/language-service/src/ts_plugin.ts:273–304  ·  view source on GitHub ↗
(
    fileName: string,
    start: number,
    end: number,
    errorCodes: readonly number[],
    formatOptions: ts.FormatCodeSettings,
    preferences: ts.UserPreferences,
  )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

isTypeScriptFileFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…