Skip to content

Commit 227390a

Browse files
committed
test(jsdocTypeCompletionOrphanedBranches): added test for satisfies tag
1 parent 558b1ef commit 227390a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/cases/fourslash/jsdocTypeCompletionOrphanedBranches.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
////// Branch 14: Non-existent namespace - falls back to type completions
9494
////// ============================================================
9595
////function branch14(/** @type {nonexistent./*b14*/} */) {}
96+
////
97+
////// ============================================================
98+
////// Branch 15: @satisfies tag (not just @type) - should also work
99+
////// ============================================================
100+
////function branch15(/** @satisfies {t./*b15*/} */) {}
96101

97102
// Branch 1: Qualified name with namespace import - MEMBER completions
98103
verify.completions({
@@ -200,3 +205,13 @@ verify.completions({
200205
marker: "b14",
201206
includes: [{ name: "string", kind: "keyword", sortText: completion.SortText.GlobalsOrKeywords }],
202207
});
208+
209+
// Branch 15: @satisfies tag - works just like @type
210+
verify.completions({
211+
marker: "b15",
212+
exact: [
213+
{ name: "MyType", kind: "interface", kindModifiers: "export" },
214+
{ name: "Nested", kind: "module", kindModifiers: "export" },
215+
{ name: "OtherType", kind: "interface", kindModifiers: "export" },
216+
],
217+
});

0 commit comments

Comments
 (0)