Commit graph

12 commits

Author SHA1 Message Date
Wenlu Wang 5596ed80d7
Add replacement span for string literal (#37490)
* Add replacement span for string literal

* fix change requests

* fix lint

* Avoid flag

* Fix baseline

* ADd misising baseline
2020-04-01 17:58:16 -07:00
Adam Postma e951455215 Update misspelling 'identifer' to 'identifier' (#30894)
* fix typo - identifer to identifier

* fix typo - identifer to identifier
2019-04-12 13:29:00 -07:00
Andy c97fc64972
Always use verify.completions when testing completions (#28137) 2018-10-29 10:03:25 -07:00
Andy 659dc03f68
completions: isNewIdentifierLocation = false for string literal where all legal values are known (#22933) 2018-03-27 19:36:54 -07:00
Andy 21cd68dd04
Test for isNewIdentifierLocation, and make true for type with index signature (#22910) 2018-03-27 13:05:41 -07:00
Andy 89ceb4b9b5
Support completions that require changing from dot to bracket access (#20547)
* Support completions that require changing from dot to bracket access

* Use insertText and replacementSpan

* Rename includeBracketCompletions to includeInsertTextCompletions

* Don't add completions that start with space
2018-01-08 18:57:46 -08:00
Andy 36607e1bde Allow quoted names in completions (#18162)
* Allow quoted names in completions

* Don't allow string literal completions if not in an object literal; and use string literals for number keys

* Add TODO
2017-09-06 14:39:53 -07:00
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
Andy Hanson 9f20077914 Use "completionList" methods instead of "memberList" ones, since they're identical 2016-12-07 13:36:11 -08:00
Yui T 41bedd2768 Use getDecalredName in service layer instead of symbol.getName 2015-07-09 17:05:57 -07:00
Mohamed Hegazy 57fa018a19 Use scanner APIs to identify if a display name is valid completion entry 2014-09-15 13:54:50 -07:00
Mohamed Hegazy df7066f2e7 Enable completion fourslash tests 2014-09-15 13:53:25 -07:00
Renamed from tests/cases/fourslash_old/completionListInvalidMemberNames.ts (Browse further)