Skip to content

Commit bfde7ec

Browse files
committed
Add test for nested calls
1 parent fd43211 commit bfde7ec

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/services/signatureHelp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
22
// See LICENSE.txt in the project root for complete license information.
33

4-
///<reference path='references.ts' />
4+
///<reference path='services.ts' />
55

66
module ts.SignatureHelp {
77

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////declare function fn(x: string);
4+
////declare function fn(x: string, y: number);
5+
////declare function fn2(x: string);
6+
////declare function fn2(x: string, y: number);
7+
////fn('', fn2(/*1*/
8+
9+
goTo.marker('1');
10+
verify.signatureHelpCountIs(2);
11+
verify.currentSignatureHelpIs("fn2(x: string): any");
12+
verify.currentParameterHelpArgumentNameIs("x");
13+
verify.currentParameterSpanIs("x: string");
14+
15+
edit.insert("'',");
16+
17+
verify.signatureHelpCountIs(2);
18+
// verify.currentSignatureHelpIs("fn2(x: string, y: number): any");
19+
// verify.currentParameterHelpArgumentNameIs("y");
20+
// verify.currentParameterSpanIs("y: number");

0 commit comments

Comments
 (0)