Skip to main content
Module

x/ts_morph/mod.ts>LanguageService#getCombinedCodeFix

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method LanguageService.prototype.getCombinedCodeFix
import { LanguageService } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Gets file changes and actions to perform for the provided fixId.

Parameters

filePathOrSourceFile: string | SourceFile
  • File path or source file to get the combined code fixes for.
fixId: { }
  • Identifier for the code fix (ex. "fixMissingImport"). These ids are found in the ts.codefix namespace in the compiler api source.
optional
formatSettings: FormatCodeSettings
  • Format code settings.
optional
preferences: UserPreferences
  • User preferences for refactoring.