Skip to content

Commit 1939c65

Browse files
author
Arthur Ozga
committed
rename helper
1 parent 15c0291 commit 1939c65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/harness/fourslash.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ namespace FourSlash {
22832283
*/
22842284
public getAndApplyCodeActions(errorCode?: number, index?: number) {
22852285
const fileName = this.activeFile.fileName;
2286-
this.applyCodeActions(fileName, this.getCodeFixActions(fileName, errorCode), index);
2286+
this.applyCodeAction(fileName, this.getCodeFixActions(fileName, errorCode), index);
22872287
}
22882288

22892289
public verifyRangeIs(expectedText: string, includeWhiteSpace?: boolean) {
@@ -2328,7 +2328,7 @@ namespace FourSlash {
23282328
public verifyFileAfterCodeFix(expectedContents: string, fileName?: string) {
23292329
fileName = fileName ? fileName : this.activeFile.fileName;
23302330

2331-
this.applyCodeActions(fileName, this.getCodeFixActions(fileName));
2331+
this.applyCodeAction(fileName, this.getCodeFixActions(fileName));
23322332

23332333
const actualContents: string = this.getFileContent(fileName);
23342334
if (this.removeWhitespace(actualContents) !== this.removeWhitespace(expectedContents)) {
@@ -2366,7 +2366,7 @@ namespace FourSlash {
23662366
return actions;
23672367
}
23682368

2369-
private applyCodeActions(fileName: string, actions: ts.CodeAction[], index?: number): void {
2369+
private applyCodeAction(fileName: string, actions: ts.CodeAction[], index?: number): void {
23702370
if (index === undefined) {
23712371
if (!(actions && actions.length === 1)) {
23722372
this.raiseError(`Should find exactly one codefix, but ${actions ? actions.length : "none"} found.`);
@@ -2769,7 +2769,7 @@ namespace FourSlash {
27692769

27702770
const codeActions = this.languageService.getRefactorCodeActions(this.activeFile.fileName, formattingOptions, markerPos, refactorNameToApply);
27712771

2772-
this.applyCodeActions(this.activeFile.fileName, codeActions);
2772+
this.applyCodeAction(this.activeFile.fileName, codeActions);
27732773
const actualContent = this.getFileContent(this.activeFile.fileName);
27742774

27752775
if (this.normalizeNewlines(actualContent) !== this.normalizeNewlines(expectedContent)) {

0 commit comments

Comments
 (0)