@@ -2283,7 +2283,7 @@ namespace FourSlash {
2283
2283
*/
2284
2284
public getAndApplyCodeActions ( errorCode ?: number , index ?: number ) {
2285
2285
const fileName = this . activeFile . fileName ;
2286
- this . applyCodeActions ( fileName , this . getCodeFixActions ( fileName , errorCode ) , index ) ;
2286
+ this . applyCodeAction ( fileName , this . getCodeFixActions ( fileName , errorCode ) , index ) ;
2287
2287
}
2288
2288
2289
2289
public verifyRangeIs ( expectedText : string , includeWhiteSpace ?: boolean ) {
@@ -2328,7 +2328,7 @@ namespace FourSlash {
2328
2328
public verifyFileAfterCodeFix ( expectedContents : string , fileName ?: string ) {
2329
2329
fileName = fileName ? fileName : this . activeFile . fileName ;
2330
2330
2331
- this . applyCodeActions ( fileName , this . getCodeFixActions ( fileName ) ) ;
2331
+ this . applyCodeAction ( fileName , this . getCodeFixActions ( fileName ) ) ;
2332
2332
2333
2333
const actualContents : string = this . getFileContent ( fileName ) ;
2334
2334
if ( this . removeWhitespace ( actualContents ) !== this . removeWhitespace ( expectedContents ) ) {
@@ -2366,7 +2366,7 @@ namespace FourSlash {
2366
2366
return actions ;
2367
2367
}
2368
2368
2369
- private applyCodeActions ( fileName : string , actions : ts . CodeAction [ ] , index ?: number ) : void {
2369
+ private applyCodeAction ( fileName : string , actions : ts . CodeAction [ ] , index ?: number ) : void {
2370
2370
if ( index === undefined ) {
2371
2371
if ( ! ( actions && actions . length === 1 ) ) {
2372
2372
this . raiseError ( `Should find exactly one codefix, but ${ actions ? actions . length : "none" } found.` ) ;
@@ -2769,7 +2769,7 @@ namespace FourSlash {
2769
2769
2770
2770
const codeActions = this . languageService . getRefactorCodeActions ( this . activeFile . fileName , formattingOptions , markerPos , refactorNameToApply ) ;
2771
2771
2772
- this . applyCodeActions ( this . activeFile . fileName , codeActions ) ;
2772
+ this . applyCodeAction ( this . activeFile . fileName , codeActions ) ;
2773
2773
const actualContent = this . getFileContent ( this . activeFile . fileName ) ;
2774
2774
2775
2775
if ( this . normalizeNewlines ( actualContent ) !== this . normalizeNewlines ( expectedContent ) ) {
0 commit comments