Skip to content

Commit 707e026

Browse files
committed
fix: use exact to ensure the order of completions
1 parent 4b84a59 commit 707e026

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/cases/fourslash/completionsSelfDeclaring2.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
/// <reference path="fourslash.ts" />
22

3-
////function f1<T>(x: T) {}
4-
////f1({ abc/*1*/ });
5-
////
6-
////function f2<T extends { xyz: number }>(x: T) {}
7-
////f2({ x/*2*/ });
3+
//// function f1<T>(x: T) {}
4+
//// f1({ abc/*1*/ });
5+
6+
//// function f2<T extends { xyz: number }>(x: T) {}
7+
//// f2({ x/*2*/ });
88

99

1010
verify.completions({
1111
marker: "1",
12-
includes: [{
13-
name: "Object",
14-
sortText: completion.SortText.GlobalsOrKeywords
15-
}]
12+
exact: completion.globalsPlus(["f1", "f2"])
1613
});
1714

1815
verify.completions({

0 commit comments

Comments
 (0)