2014-10-01 00:26:39 +02:00
|
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
|
|
////declare function f();
|
|
|
|
|
////declare function f(s: string);
|
|
|
|
|
////declare function f(s: string, b: boolean);
|
|
|
|
|
////declare function f(n: number, b: boolean);
|
|
|
|
|
////
|
|
|
|
|
////f(/**/
|
|
|
|
|
|
|
|
|
|
goTo.marker();
|
|
|
|
|
verify.signatureHelpCountIs(4);
|
|
|
|
|
verify.currentSignatureHelpIs("f(): any");
|
2014-11-19 20:55:05 +01:00
|
|
|
|
verify.currentSignatureParameterCountIs(0);
|
2014-10-01 02:13:27 +02:00
|
|
|
|
verify.signatureHelpArgumentCountIs(0);
|
2014-10-01 00:26:39 +02:00
|
|
|
|
|
|
|
|
|
edit.insert(", ");
|
|
|
|
|
verify.signatureHelpCountIs(4);
|
|
|
|
|
verify.currentSignatureHelpIs("f(s: string, b: boolean): any");
|
2014-11-19 20:55:05 +01:00
|
|
|
|
verify.currentSignatureParameterCountIs(2);
|
2014-10-01 00:26:39 +02:00
|
|
|
|
verify.currentParameterHelpArgumentNameIs("b");
|
|
|
|
|
verify.currentParameterSpanIs("b: boolean");
|
|
|
|
|
|
|
|
|
|
edit.insert(", ");
|
|
|
|
|
verify.signatureHelpCountIs(4);
|
2014-10-01 02:13:27 +02:00
|
|
|
|
verify.currentSignatureHelpIs("f(s: string, b: boolean): any");
|
2014-11-19 20:55:05 +01:00
|
|
|
|
verify.currentSignatureParameterCountIs(2);
|