2014-11-19 02:41:58 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// function f(templateStrings: string[], p1_o1: string): number;
|
|
|
|
//// function f(templateStrings: string[], p1_o2: number, p2_o2: number, p3_o2: number): string;
|
|
|
|
//// function f(templateStrings: string[], p1_o3: string, p2_o3: boolean, p3_o3: number): boolean;
|
|
|
|
//// function f(...foo[]: any) { return ""; }
|
|
|
|
////
|
|
|
|
//// f `${/*1*/ 123.456/*2*/ /*3*/ } ${
|
|
|
|
|
|
|
|
test.markers().forEach(m => {
|
|
|
|
goTo.position(m.position);
|
|
|
|
|
|
|
|
verify.signatureHelpCountIs(3);
|
|
|
|
verify.signatureHelpArgumentCountIs(3);
|
|
|
|
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(4);
|
2014-11-19 02:41:58 +01:00
|
|
|
verify.currentSignatureHelpIs('f(templateStrings: string[], p1_o2: number, p2_o2: number, p3_o2: number): string');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("p1_o2");
|
|
|
|
verify.currentParameterSpanIs("p1_o2: number");
|
|
|
|
});
|