TypeScript/tests/cases/fourslash/completionListInvalidMemberNames.ts
Andy aa2d1008bf Completion for default export should be '.default' (#16742)
* 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
2017-07-11 07:23:32 -07:00

26 lines
773 B
TypeScript

/// <reference path='fourslash.ts' />
////var x = {
//// "foo ": "space in the name",
//// "bar": "valid identifier name",
//// "break": "valid identifier name (matches a keyword)",
//// "any": "valid identifier name (matches a typescript keyword)",
//// "#": "invalid identifier name",
//// "$": "valid identifier name",
//// "\u0062": "valid unicode identifer name (b)",
//// "\u0031\u0062": "invalid unicode identifer name (1b)"
////};
////
////x./**/
goTo.marker();
verify.completionListContains("bar");
verify.completionListContains("break");
verify.completionListContains("any");
verify.completionListContains("$");
verify.completionListContains("b");
// Nothing else should show up
verify.completionListCount(5);