2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////var a = 0;
|
|
|
|
////function foo(/**/
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: "", exact: undefined });
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.insert("a"); // foo(a|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact: undefined });
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.insert(" , "); // foo(a ,|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact: undefined });
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.insert("b"); // foo(a ,b|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact: undefined });
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.insert(":"); // foo(a ,b:| <- type ref
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact: completion.globalTypes });
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.insert("number, "); // foo(a ,b:number,|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact: undefined });
|