Commit Graph

32018 Commits

Author SHA1 Message Date
Anders Hejlsberg 93b4302d35 Accept new baselines 2018-12-28 09:36:23 -10:00
Anders Hejlsberg 0165e80e7c Don't widen contextually typed literals in initializer expressions 2018-12-28 09:30:14 -10:00
TypeScript Bot 4a664d690b Update user baselines (#29187) 2018-12-28 07:21:29 -08:00
Benjamin Lichtman 6ffe42781c Merge pull request #29181 from uniqueiniquity/templateLiteralInNavTree
Show template literal in navtree function call args
2018-12-27 19:20:23 -08:00
Benjamin Lichtman c46090b8dc Show template literal in navtree function call args 2018-12-27 17:43:56 -08:00
Anders Hejlsberg 8a72a19b7a Accept new baselines 2018-12-27 14:05:24 -10:00
Anders Hejlsberg a400a8afec Add regression test 2018-12-27 14:05:14 -10:00
Anders Hejlsberg 5e1d490e58 Accept new baselines 2018-12-27 14:00:00 -10:00
Anders Hejlsberg 3f7a9a906b Type parameter defaults can only reference previously declared type parameters 2018-12-27 13:45:13 -10:00
Sheetal Nandi 42484b504e Use DirectoryStructureHost for fileExists and readFile 2018-12-27 10:36:18 -08:00
Kagami Sascha Rosylight c89a80736e add ES2019 target 2018-12-27 19:46:21 +09:00
Sheetal Nandi 69abc12494 Handle declaration emit errors in tsbuild mode by backing up builder state
This helps us revert to state where we pretend as if emit is not done (since we do not do emit if there are errors)
2018-12-26 12:25:27 -08:00
Sheetal Nandi b360ff770a Write the tests for incremental build and declaration emit errors handling
These will fail since its still TODO
2018-12-26 12:07:12 -08:00
Kagami Sascha Rosylight 60996b5bed Merge remote-tracking branch 'upstream/master' into async-es2018 2018-12-26 17:15:03 +09:00
王文璐 7c93affd7d fix typeof completions broken 2018-12-25 17:30:04 +08:00
Klaus Meinhardt a769c35484 property is used before its initialization: check more nodes
Fixes: #29125
2018-12-23 23:13:46 +01:00
Sheetal Nandi 0d9038c30a Handle prepend in incremental build. Always emit when program uses project reference with prepend since it cant tell changes in js/map files 2018-12-21 17:22:17 -08:00
Sheetal Nandi 7b290fdbd4 Update the timestamps of outputs that dont need to be written because of incremental build
This ensures that after `tsbuild` after incremental build of `tsbuild -w` doesnt result in unnecessary rebuilds
2018-12-21 12:56:03 -08:00
Sheetal Nandi f1949bbae8 Use emit builder to emit only changed files. 2018-12-21 12:53:26 -08:00
Sheetal Nandi 47f51060e9 Use oldProgram to create the new Program.
This helps in storing the semantic diagnostics
2018-12-21 12:53:26 -08:00
Sheetal Nandi 69193d9c20 Add method to release held Program in BuilderProgram 2018-12-21 12:53:25 -08:00
Sheetal Nandi 56a76d8b62 Revert BuilderProgram to be redirected object to Program in preparation to set Program in state to undefined for storing. 2018-12-21 12:53:25 -08:00
Sheetal Nandi 48baa42d65 Make SolutionBuilder handle BuilderProgram in preparation to handle incremental builds 2018-12-21 12:53:25 -08:00
Sheetal Nandi 9e05abcfd3 Make BuilderProgram as Program 2018-12-21 12:53:15 -08:00
Sheetal Nandi 0cabb00b34 Use watch factory instead of direct host functions in tsbuild to provide detailed information on watch invokations 2018-12-21 12:53:14 -08:00
Sheetal Nandi b8def16e92 Merge pull request #28902 from Microsoft/unitTestsSplit
Unittests refactoring
2018-12-21 12:52:29 -08:00
Anders Hejlsberg 194496f5ad Accept new baselines 2018-12-21 12:51:20 -08:00
Anders Hejlsberg 7ad2661625 Add tests 2018-12-21 12:51:01 -08:00
Anders Hejlsberg 565ab7a971 Properly compute lower bound of key type in a mapped type 2018-12-21 12:50:53 -08:00
Daniel Krom 490f69f984 duplicate wait instead of wait and notify
original was
```
notify(typedArray: Int32Array, index: number, count: number): number;
```
it seems to be a mistake, the real method is `notify` (the first wait is fine)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/notify
2018-12-21 10:41:24 +02:00
TypeScript Bot a139303413 Update user baselines (#29109) 2018-12-20 16:57:21 -08:00
Sheetal Nandi efc71602cd Refactor tsc-watch tests 2018-12-20 14:17:43 -08:00
Sheetal Nandi f117184562 More tsserver tests refactoring 2018-12-20 14:00:45 -08:00
Sheetal Nandi db4d9b3050 Add unittests:: on all unittests describe blocks for easy run 2018-12-20 13:20:53 -08:00
Sheetal Nandi 53e2507f60 More scenarios in their own test 2018-12-20 12:55:18 -08:00
Sheetal Nandi 5c8ef3934d Move the tests into their own folder for easy scenario search 2018-12-20 12:19:18 -08:00
Sheetal Nandi 9e17a66151 Sym links into single test 2018-12-20 12:18:43 -08:00
Sheetal Nandi 5234b8b18e Move more tests into resolutionCache and project errors 2018-12-20 12:17:02 -08:00
Sheetal Nandi 160c73f942 Separate out caching file system test 2018-12-20 12:16:47 -08:00
Sheetal Nandi 96c73701c1 More refactoring for resloutionCache and project errors 2018-12-20 12:16:23 -08:00
Sheetal Nandi f6ac949596 Separate out LargeFileReferencedEvent test 2018-12-20 12:15:58 -08:00
Sheetal Nandi 04e190abb7 ProjectUpdatedInBackground in a separate unittest 2018-12-20 12:15:43 -08:00
Sheetal Nandi 39ec69e26e Separate out tests for project loading events into their own unittest file 2018-12-20 12:15:25 -08:00
Sheetal Nandi 03d66dd2ef Emit error tsserver tests into projectErrors 2018-12-20 12:12:54 -08:00
Sheetal Nandi 37a080bca9 tsserver's typingInstaller test into typingsInstaller unittest 2018-12-20 12:12:37 -08:00
Sheetal Nandi 1b6db32ecd Move error tests from tsserver project system to projectErrors 2018-12-20 12:12:19 -08:00
Sheetal Nandi 53a6968f06 More refactoring for compile on save 2018-12-20 12:11:59 -08:00
Sheetal Nandi 347f89c851 tsc-watch emit tests in to its own tests 2018-12-20 12:11:36 -08:00
Sheetal Nandi 7b9b0f8da7 Split resolutionCache and watchApi tests into its own unittest 2018-12-20 12:11:07 -08:00
Sheetal Nandi 47200acfcd Split watch environment into its own unittest 2018-12-20 12:10:28 -08:00