Commit Graph

10754 Commits

Author SHA1 Message Date
Mohamed Hegazy
4a29bddbbb Update version 2018-01-20 11:24:53 -08:00
Philippe Voinov
a7c53c70d2 Fix isTypeOfExpression in compiler API (#20875). (#20884) 2018-01-19 17:32:37 -08:00
Sheetal Nandi
cc6d18e4db Merge pull request #20234 from Microsoft/builderApi
Api for creating program in watch mode and using builder to get incremental emit/semantic diagnostics
2018-01-19 16:14:50 -08:00
Wesley Wigham
d4c36120cf Make nonnull assertions and binding patterns apparent declared type locations (#20995)
* Use apparent type of original type to handle indexes

* Redo older fix causing new bug by extending getDeclaredOrApparentType instead of getTypeWithFacts

* Rename symbol
2018-01-19 16:06:42 -08:00
Sheetal Nandi
8a51cdaf42 Merge branch 'master' into builderApi 2018-01-19 15:56:40 -08:00
Sheetal Nandi
2be231d339 Add createProgram on WatchCompilerHost 2018-01-19 15:52:21 -08:00
Nathan Shively-Sanders
eed85737b8 Merge pull request #21271 from Microsoft/infer-keyof-to-any-not-empty
Inference of string literals to keyof creates an object with props of type `any`, not `{}`
2018-01-19 13:35:22 -08:00
Nathan Shively-Sanders
4632ed6dda Merge pull request #21242 from Microsoft/fix-indexed-access-relation
Fix indexed access relation
2018-01-19 13:13:14 -08:00
Sheetal Nandi
8c0454027b Merge pull request #21281 from Microsoft/isEmittedFileCheckInInvalidateResolution
Check if the file added is emitted file after validating extensions
2018-01-19 13:04:28 -08:00
Andy
d46653a2ac Handle undefined input to firstDefined (#21300) 2018-01-19 10:10:43 -08:00
Anders Hejlsberg
a79d0b1f91 Merge pull request #21292 from Microsoft/fixReverseMappedContravariantInference
Fix reverse mapped contravariant inference
2018-01-19 06:29:37 -08:00
Anders Hejlsberg
5bb8d2a590 Properly handle contravariant inferences in inferReverseMappedType 2018-01-18 17:15:48 -08:00
Andy
a6c42a63a1 Remove unused properties from interface Refactor (#21286) 2018-01-18 16:39:33 -08:00
Nathan Shively-Sanders
39fee67d8e Merge pull request #21110 from jack-williams/strict-null-empty-destructuring
Fix #20873: Enforce strictNullChecks for RHS of empty destructuring assignment
2018-01-18 14:24:50 -08:00
Sheetal Nandi
96ac5aa241 Check if the file added is emitted file after validating extensions
May fix #21274
2018-01-18 12:26:45 -08:00
Andy
b5ae9de7ba Add grammar error for const { ...a: b } = {}; (#21267)
* Add grammar error for `const { ...a: b } = {};`

* Fix bug: bring in forEachChild change from #21268
2018-01-18 10:57:35 -08:00
Andy
9436b1cc0b Fix formatter crash for const { ...a: b } = {};: forEachChild and emitBindingElement should handle ... before the propertyName (#21268) 2018-01-18 10:36:41 -08:00
Andy
466557cafb Support parsing @template {T} in addition to @template T (#21270) 2018-01-18 09:45:29 -08:00
Andy
dffa8b1329 Add a TriviaKind type to allow more specific types (#21237) 2018-01-18 09:44:30 -08:00
Sheetal Nandi
bd43e45075 Move getCurrentDirectory to builder program 2018-01-18 09:19:57 -08:00
Nathan Shively-Sanders
f0b4018017 Infer:string literal->keyof creates any props not {} 2018-01-18 08:44:57 -08:00
Sheetal Nandi
f29c0e34fb Expose createWatchCompilerHost as overload 2018-01-17 16:44:47 -08:00
Sheetal Nandi
29dee9fb0c Do not expose createWatchOfConfigFile and createWatchOfFilesAndCompilerOptions 2018-01-17 16:26:11 -08:00
Sheetal Nandi
ed23ca582a Merge branch 'master' into builderApi 2018-01-17 16:11:44 -08:00
Sheetal Nandi
8e35c3103d Merge pull request #21244 from Microsoft/allowNonExistentInputInGetDirectories
Fix the invalid file/directory location when getting file system entries for caching the results
2018-01-17 15:39:49 -08:00
Wesley Wigham
99d6b0d308 Actually get the apparent type of intersection members when calculating intersection apparent types (#21133)
* Actually get the apparent type of intersection members when calculating intersection apparent types

* Add nonjsx variant

* Fix nit
2018-01-17 15:20:09 -08:00
Sheetal Nandi
9ad9dc106c Merge pull request #21171 from Microsoft/renameSymLinks
Rename through all projects with same file through symLink
2018-01-17 15:08:27 -08:00
Sheetal Nandi
8281c7a137 Fix the invalid file/directory location when getting file system entry for caching read directory results
Fixes #20607
2018-01-17 15:00:22 -08:00
Andy
ec37651308 Use packageId for suggestion to install @types/packageName (#21241) 2018-01-17 14:22:58 -08:00
Nathan Shively-Sanders
5c889299f4 Indexed access relation check object+index types
Previously, it only check the object types, and only if the index types
were identical. Now both checks call `isRelatedTo` recursively.
2018-01-17 13:21:10 -08:00
Ron Buckton
3c988e8f5a Merge pull request #21215 from Microsoft/fix20461
Fixes var declaration shadowing in async functions
2018-01-17 13:08:18 -08:00
Benjamin Lichtman
8f6c516ef9 Merge pull request #21205 from uniqueiniquity/resolveTripleSlashReferencePaths
Fix Windows-style absolute paths in triple-slash directives
2018-01-17 12:31:46 -08:00
Andy
8ed885db3e Add completions from the 'this' type (#21231)
* Add completions from the 'this' type

* Code review
2018-01-17 12:05:31 -08:00
Ron Buckton
5b45db7907 PR Feedback 2018-01-17 11:55:43 -08:00
Andy
b363f4f9cd Log packageId in --traceResolution (#21233) 2018-01-17 11:41:23 -08:00
Ron Buckton
afaa139475 Namespaces do not have the same 'var' scope 2018-01-17 11:30:48 -08:00
Andy
c549bb5737 Fix bug: getNonNullableType before getting signatures of method (#21212) 2018-01-17 11:27:21 -08:00
Ron Buckton
2ba29d8d9d Support labeled statement 2018-01-17 11:24:28 -08:00
Ron Buckton
004f18ff0c Merge pull request #21219 from Microsoft/fix19020
Fix destructuring assignment when assignment target is RHS
2018-01-17 11:22:30 -08:00
Andy
61fb845b87 Get packageId for relative import within a package (#21130)
* Get packageId for relative import within a package

* Code review

* Rename things and add comments

* Improve documentation

* Test for scoped packages
2018-01-17 11:14:03 -08:00
Daniel
2ca688a87d Remove the colon from the message in tsconfig.json (#21174)
* Add additional diagnostic message for tsconfig.json

* Add a way to override description for tsconfig.json

* Modify reference tsconfig.json in tests

* Don't have to differentiate cmdline and tsconfig.json description

This reverts commit efe57733ca and 94f9e67a24.

* Remove colon from diagnostic message code 6079

* Remove colon from localized messages code 6079

* Revert "Remove colon from localized messages code 6079"

Not changing files on src/loc because they are managed using automated tools.

This reverts commit e91f52348e.
2018-01-17 09:42:40 -08:00
Ron Buckton
c4fddba0a9 Remove duplicate implementations 2018-01-16 17:11:32 -08:00
uniqueiniquity
5320ce2552 Revert path normalization in favor of checking for backslash 2018-01-16 17:04:14 -08:00
Ron Buckton
7a89c963b0 Merge pull request #21217 from Microsoft/fix20146
Symbol-named properties do not need to align with string indexer type
2018-01-16 17:01:27 -08:00
Ron Buckton
dcc5c32abf Merge pull request #21216 from Microsoft/fix19103
Fix incorrect parenthesization logic for conditional expression branches
2018-01-16 17:00:55 -08:00
Ron Buckton
4aca0c8121 Fix destructuring assignment when assignment target is RHS 2018-01-16 16:58:56 -08:00
Ron Buckton
cd525fb6de Merge pull request #21206 from Microsoft/fix20744
Fix temp variable emit for names used in nested classes
2018-01-16 16:00:24 -08:00
Ron Buckton
6c9827725c Fix symbol-named properties incorrectly requiring alignment with string indexer type 2018-01-16 15:45:10 -08:00
Ron Buckton
16b13fe449 Fix incorrect parenthesization logic for conditional expression branches 2018-01-16 15:17:04 -08:00
Ron Buckton
136c4d0dda Fixes var declaration shadowing in async functions 2018-01-16 15:02:23 -08:00