Commit Graph

28909 Commits

Author SHA1 Message Date
Wenlu Wang 9c0671d661 add refactor of convert private field to getter and setter (#22143)
* add refactor of convert private field to getter and setter

* fix refactor

* stash

* refactor accessor generate

* revert merge union type

* refeactor and accept baseline

* add support of PropertyAssignment and StringLiteral

* add support for js file

* allow static modifier in js file
2018-04-10 11:51:41 -07:00
Andy 556a8010b9 Fix bug: ensure 'reportsUnnecessary' is actually sent by tsserver (#23293) 2018-04-10 10:15:15 -07:00
csigs 8248075550 LEGO: Merge pull request 23302
LEGO: Merge pull request 23302
2018-04-10 03:10:53 -07:00
csigs 651412c887 LEGO: check in for master to temporary branch. 2018-04-10 10:10:29 +00:00
csigs 668c5ff5d6 LEGO: Merge pull request 23298
LEGO: Merge pull request 23298
2018-04-09 21:10:48 -07:00
csigs 3f0dad831d LEGO: check in for master to temporary branch. 2018-04-10 04:10:24 +00:00
Daniel Rosenwasser 9b8670cf92 Accepted baselines. 2018-04-09 15:28:37 -07:00
Daniel Rosenwasser 8923eec80a Added tests for 'import.meta'. 2018-04-09 15:26:30 -07:00
csigs 33a6946ac4 LEGO: Merge pull request 23290
LEGO: Merge pull request 23290
2018-04-09 15:11:04 -07:00
csigs fe6142a2da LEGO: check in for master to temporary branch. 2018-04-09 22:10:41 +00:00
Andy ce5d22fef0 Fix bug: don't insert a semicolon when inserting a FunctionDeclaration (#23240) 2018-04-09 15:03:24 -07:00
Wesley Wigham 83ab341531 Allow variable statements used as declaration sites to be marked visible (#22798)
* Allow variable statements used as declaration sites to be marked visible and included in declaration emit by alias marking

* Dont forget to transform statements

* Accept baselines

* Accept updated baselines for new test

* Emit scope fix markers

* Add partial private variable declaration emit test
2018-04-09 14:30:40 -07:00
Andy 71b39014eb Fix bug: Include comment for @param tag with nested tag (#23276)
* Fix bug: Include comment for @param tag with nested tag

* Add another comment to test
2018-04-09 14:09:59 -07:00
Andy 542184a05a Rename infoCheck to suggestionCheck (#23286) 2018-04-09 14:09:07 -07:00
Andy e858de9520 Simplify handling of parameter properties in forEachRelatedSymbol (#23213)
* Simplify handling of parameter properties in forEachRelatedSymbol

* Add assert for other paramProps symbol
2018-04-09 13:26:10 -07:00
Andy 98a5e5cc0d Prioritize spelling fix over add-missing-member fix (#23268) 2018-04-09 13:23:11 -07:00
Andy 998beadba2 Support goto-definition for index signatures (#23220)
* Support goto-definition for index signatures

* Use checker.getIndexInfoOfType

* Handle undefined info.declaration
2018-04-09 12:48:41 -07:00
Anders Hejlsberg b1545fe5ef Accept new baselines 2018-04-09 08:52:20 -10:00
Anders Hejlsberg 0379666bbf Update tests 2018-04-09 08:51:55 -10:00
Anders Hejlsberg 6d93f30839 Enable 'keyof T' for full string | number | symbol 2018-04-09 08:51:26 -10:00
Anders Hejlsberg 2c02195560 Accept new baselines 2018-04-09 07:48:13 -10:00
Anders Hejlsberg 68ce69a351 Move 'PropertyKey' from es2015.core.d.ts to es5.d.ts 2018-04-09 07:45:55 -10:00
Anders Hejlsberg ff20f38405 Add support for numbers and symbols in keyof (but keep it disabled) 2018-04-09 07:45:13 -10:00
csigs fb02d670ff LEGO: Merge pull request 23269
LEGO: Merge pull request 23269
2018-04-09 09:11:00 -07:00
csigs bcbaac92e5 LEGO: check in for master to temporary branch. 2018-04-09 16:10:36 +00:00
csigs ae0ccf340f LEGO: Merge pull request 23254
LEGO: Merge pull request 23254
2018-04-08 03:10:48 -07:00
csigs 678bab2eca LEGO: check in for master to temporary branch. 2018-04-08 10:10:24 +00:00
王文璐 dc78c4f4de improve parser and error message if definite assignment assertions in object short hand 2018-04-08 18:03:09 +08:00
Sheetal Nandi 4170f35abc Merge pull request #23239 from Microsoft/skipWatchingTypeCacheInfos
Skip watching script infos in the global type cache location
2018-04-06 17:06:37 -07:00
Andy 9762598775 findAllReferences: forEachRelatedSymbol can always include shorthand destructuring (#23223)
* findAllReferences: forEachRelatedSymbol can always include shorthand destructuring

* Update rename tests
2018-04-06 16:30:55 -07:00
Andy e0dbdad22a IndexInfo#declaration is always an IndexSignatureDeclaration (#23232) 2018-04-06 16:20:45 -07:00
Nathan Shively-Sanders c4788f9198 Update user tests with improved lib settings (#23238) 2018-04-06 16:16:34 -07:00
Sheetal Nandi 7a0a1f6a28 Do not watch script infos that are part of global typings location 2018-04-06 15:52:39 -07:00
Sheetal Nandi c9f39951b6 Do not send project update in background if there was no ensureUpdate pending on the project structure 2018-04-06 14:58:13 -07:00
Sheetal Nandi 62c6fe2ccc There is no need to ensure project structure when tryiong to get inferred project
The project operations will validate if its valid anyways
2018-04-06 14:22:08 -07:00
Sheetal Nandi e304178c65 Add time stamp into the ti log. 2018-04-06 14:22:04 -07:00
Sheetal Nandi 9d3ad545bc Reverted unintentional formatting changes 2018-04-06 13:37:30 -07:00
Nathan Shively-Sanders c466a4541e Update user test baselines (#23181)
* Update user test baselines

* Remove outdated error
2018-04-06 13:23:09 -07:00
Nathan Shively-Sanders a7a01eadba Allow both module.exports= and module.exports property assignments (#23228)
* Combining symbol and removing error done but messy

* Small fix + add new test baselines

All other tests are unchanged

* Union conflicting assignment types+better names

* Add tests and update baselines

* Check commonjs export= from resolveExternalModuleSymbol
2018-04-06 13:04:39 -07:00
Andy 70682b7799 Clean up code for nonrelative path completions (#23150)
* Clean up code for nonrelative path completions

* Remove unnecessary test and simplify based on that

* More code review

* Call getCompletionEntriesFromTypings unconditionally
2018-04-06 12:19:08 -07:00
Mohamed Hegazy 724b74615b Merge pull request #23218 from TravCav/master
Bit more code cleanup
2018-04-06 11:23:33 -07:00
Andy 05cd784230 Remove unnecessary test file (#23214) 2018-04-06 10:45:01 -07:00
TravCav 9861569ae9 found another place to fall through in the checker 2018-04-06 13:40:58 -04:00
Andy 2b59c9a0d7 Don't add import completion for re-export with different name (#23211) 2018-04-06 10:05:38 -07:00
Anders Hejlsberg ccf20d3f67 Accept new baselines 2018-04-06 09:52:10 -07:00
Anders Hejlsberg fc85ba9e6a Limit getLiteralTypeFromPropertyName to only return string-like types 2018-04-06 09:52:00 -07:00
Mohamed Hegazy 61d9fc65ed Merge pull request #23203 from HolgerJeromin/patch-1
refactor: use union type in `DateConstructor`
2018-04-06 09:42:47 -07:00
Mohamed Hegazy da312398f5 Merge pull request #23050 from gagoman/fix/22923
Fix issue #22923
2018-04-06 09:31:43 -07:00
TravCav 60bd7e861c removed always true condition 2018-04-06 12:23:41 -04:00
Holger Jeromin c3d8ec0ee2 refactor: use union type in DateConstructor 2018-04-06 11:27:20 +02:00