Skip to content

Commit

Permalink
Support TypeScript 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronuz committed Jun 20, 2018
1 parent 8837e83 commit b8daed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ function init(modules: { typescript: typeof ts_module }) {
return prior;
};

proxy.getCodeFixesAtPosition = function (fileName: string, start: number, end: number, errorCodes: number[], formatOptions: ts.FormatCodeSettings): ReadonlyArray<ts.CodeAction> {
let prior = oldLS.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions);
proxy.getCodeFixesAtPosition = function (fileName: string, start: number, end: number, errorCodes: ReadonlyArray<number>, formatOptions: ts.FormatCodeSettings, preferences: ts.UserPreferences): ReadonlyArray<ts.CodeFixAction> {
let prior = oldLS.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences);
if (config.supressWhileTypeErrorsPresent && prior.length > 0) {
return prior;
}
Expand Down

0 comments on commit b8daed7

Please sign in to comment.