* Completion for default export should be '.default' * Don't include empty string in name table * getSymbolsInScope() should return local symbols, not exported symbols * Fix bug: getSymbolAtLocation should work for local symbol too
27 lines
740 B
TypeScript
27 lines
740 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////function \u0042 () { /*0*/ }
|
|
////export default function \u0043 () { /*1*/ }
|
|
////class \u0041 { /*2*/ }
|
|
/////*3*/
|
|
|
|
goTo.marker("0");
|
|
verify.completionListContains("B");
|
|
verify.completionListContains("\u0042");
|
|
|
|
goTo.marker("2");
|
|
verify.not.completionListContains("C");
|
|
verify.not.completionListContains("\u0043");
|
|
|
|
goTo.marker("2");
|
|
verify.not.completionListContains("A");
|
|
verify.not.completionListContains("\u0041");
|
|
|
|
goTo.marker("3");
|
|
verify.completionListContains("B");
|
|
verify.completionListContains("\u0042");
|
|
verify.completionListContains("A");
|
|
verify.completionListContains("\u0041");
|
|
verify.completionListContains("C");
|
|
verify.completionListContains("\u0043");
|