File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
2
2
// See LICENSE.txt in the project root for complete license information.
3
3
4
- ///<reference path='references .ts' />
4
+ ///<reference path='services .ts' />
5
5
6
6
module ts . SignatureHelp {
7
7
Original file line number Diff line number Diff line change
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");
You can’t perform that action at this time.
0 commit comments