Make adding overrides an preferred quick fix

This commit is contained in:
Matt Bierner
2021-04-28 16:43:46 -07:00
parent 9064c909d7
commit a4fdb2c3ad
2 changed files with 2 additions and 0 deletions

View File

@@ -382,6 +382,7 @@ const preferredFixes = new Map<string, { readonly priority: number, readonly the
[fixNames.forgottenThisPropertyAccess, { priority: 2 }],
[fixNames.spelling, { priority: 0 }],
[fixNames.addMissingAwait, { priority: 2 }],
[fixNames.addMissingOverride, { priority: 2 }],
[fixNames.fixImport, { priority: 1, thereCanOnlyBeOne: true }],
]);

View File

@@ -15,3 +15,4 @@ export const forgottenThisPropertyAccess = 'forgottenThisPropertyAccess';
export const spelling = 'spelling';
export const fixImport = 'import';
export const addMissingAwait = 'addMissingAwait';
export const addMissingOverride = 'fixOverrideModifier';