Skip to content

Commit 9d81536

Browse files
authored
Fix verify.baselineCompletions (#45615)
1 parent fd067e9 commit 9d81536

8 files changed

+64965
-19823
lines changed

src/harness/fourslashImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,8 +1976,8 @@ namespace FourSlash {
19761976
public baselineCompletions(preferences?: ts.UserPreferences) {
19771977
const baselineFile = this.getBaselineFileNameForContainingTestFile();
19781978
const result = ts.arrayFrom(this.testData.markerPositions.entries(), ([name, marker]) => {
1979-
const completions = this.getCompletionListAtCaret(preferences);
19801979
this.goToMarker(marker);
1980+
const completions = this.getCompletionListAtCaret(preferences);
19811981
return {
19821982
marker: { ...marker, name },
19831983
completionList: {

tests/baselines/reference/completionEntryForUnionMethod.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@
17221722
"kind": "space"
17231723
},
17241724
{
1725-
"text": "Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
1725+
"text": "Function used to determine the order of the elements. It is expected to return\r\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
17261726
"kind": "text"
17271727
}
17281728
]

0 commit comments

Comments
 (0)