i.e. use "var v: string" instead of "(var) v: string". The parens case should only be used when we're using an english description instead of an actual language construct.
20 lines
No EOL
466 B
TypeScript
20 lines
No EOL
466 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function m2g() { };
|
|
////module m2g { export class C { foo(x: number) { } } }
|
|
////var x: m2g./*1*/;
|
|
////var /*2*/r = m2g/*3*/;
|
|
|
|
goTo.marker('1');
|
|
verify.completionListContains('C');
|
|
|
|
edit.insert('C.');
|
|
verify.not.completionListContains('foo');
|
|
edit.backspace(1);
|
|
|
|
goTo.marker('2');
|
|
verify.quickInfoIs("var r: typeof m2g");
|
|
|
|
goTo.marker('3');
|
|
edit.insert('(');
|
|
verify.currentSignatureHelpIs('m2g(): void'); |