2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////declare function fn(x: string);
|
|
|
|
////declare function fn(x: string, y: number);
|
|
|
|
////fn(/*1*/
|
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.signatureHelpCountIs(2);
|
|
|
|
verify.currentSignatureHelpIs("fn(x: string): any");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("x");
|
|
|
|
verify.currentParameterSpanIs("x: string");
|
|
|
|
|
|
|
|
edit.insert("'',");
|
|
|
|
|
|
|
|
verify.signatureHelpCountIs(2);
|
2014-09-26 22:51:13 +02:00
|
|
|
verify.currentSignatureHelpIs("fn(x: string, y: number): any");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("y");
|
|
|
|
verify.currentParameterSpanIs("y: number");
|