Commit Graph

23471 Commits

Author SHA1 Message Date
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
Armando Aguirre 50eb512566 Added deferred ScriptKind and renamed JsFileExtensionInfo to FileExtensionInfo 2018-04-05 17:30:04 -07:00
Anders Hejlsberg 39bb93fb1a Move nameType to base Symbol, generate nameType properties where missing 2018-04-05 16:00:06 -07:00
Sheetal Nandi a14396320b Resolve json modules only when --resolveJsonModule is specified 2018-04-05 15:37:13 -07:00
Sheetal Nandi 9f724156be Merge branch 'master' into requireJson 2018-04-05 15:18:21 -07:00
csigs 2167b24441 LEGO: Merge pull request 23184
LEGO: Merge pull request 23184
2018-04-05 15:10:53 -07:00
csigs ce7b7f4502 LEGO: check in for master to temporary branch. 2018-04-05 22:10:33 +00:00
Andy aa8631de98 findAllReferences: Share code between populateSearchSymbolSet and getRelatedSymbol (#23028) 2018-04-05 15:00:14 -07:00
Alex Khomchenko 134b3411ee Fix issue #22923 2018-04-05 21:39:33 +02:00
Andy 24842b4002 When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors (#22361)
* When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors

* Improve performance: do not add unused suggestion diagnostics unless asking for a suggestion

* Add "unused" flag to diagnostics

* Code review

* reportsUnused -> reportsUnnecessary

* Fix test
2018-04-05 12:33:00 -07:00
Andy f61f12613c findAllReferences: Be consistent how we handle unions in root symobls (#23002) 2018-04-05 10:55:55 -07:00
Andy 4f80fbddc2 Fix typo and use array helper (#23169)
* Fix typo and use array helper

* Update API baselines
2018-04-05 10:17:01 -07:00
TravCav 77164e1eb9 redundant code 2018-04-05 12:58:42 -04:00
Nathan Shively-Sanders 9dd8e296f3 Fix crash in type resolution in JS IIFEs (#23171)
* Fix crash in type resolution in JS IIFEs

We recognise IIFEs as JS special assignment initialisers, but not as
containers otherwise. That means that IIFEs will not have a symbol
unless they have an *outside* assignment.

The permanent fix will be to make IIFEs a container, based on the
containership of the value that they return. This fix does not do that;
it just makes type resolution return undefined instead of crashing.

* Comment the IIFE-fix line
2018-04-05 09:57:35 -07:00
Mohamed Hegazy 9cb473e102 Merge pull request #23170 from TravCav/master
isDefaultExport is always false here.
2018-04-05 09:49:46 -07:00
csigs 796bf46e51 LEGO: Merge pull request 23168
LEGO: Merge pull request 23168
2018-04-05 09:11:13 -07:00
csigs 8b42e7359b LEGO: check in for master to temporary branch. 2018-04-05 16:10:50 +00:00
Mohamed Hegazy 521f2dc869 Merge pull request #23165 from TravCav/master
removed unused code
2018-04-05 08:58:51 -07:00
Nathan Shively-Sanders 154ac342cb Allow extending any, with noImplicitAny errors (#23153)
Allow extending any, without noImplicitAny errors
2018-04-05 08:52:56 -07:00
Andy 7520f9578b Fix bug: <div a="1" b/**/ > is not a jsx initializer (#23138) 2018-04-05 08:30:02 -07:00
TravCav 42d226ca42 isDefaultExport is always false here. 2018-04-05 10:38:51 -04:00
TravCav 3ce25593cd removed unused code 2018-04-05 10:29:35 -04:00
Anders Hejlsberg a8d6a45cd6 Move nameType from SymbolLinks to TransientSymbol 2018-04-05 06:25:34 -07:00
csigs c145f63611 LEGO: Merge pull request 23163
LEGO: Merge pull request 23163
2018-04-05 03:11:02 -07:00
csigs 1d4d55bda7 LEGO: check in for master to temporary branch. 2018-04-05 10:10:40 +00:00
Wesley Wigham de669cf827 Only include unique symbols when getting index types for access checks (#23145)
* Only include unique symbols when getting index types for access checks

* Filter all nonstrings

* Inline ternary
2018-04-04 18:03:21 -07:00
Andrew Casey 7dc91476a1 Merge pull request #23128 from amcasey/SyntaxServerNoProgram
Introduce a --syntaxOnly server mode
2018-04-04 17:23:18 -07:00
Andrew Casey 855171bde5 Introduce a --syntaxOnly server mode
1. Disable the LS in all projects
 2. Don't create Program objects
 3. Ignore config files
2018-04-04 16:44:15 -07:00
Mohamed Hegazy e2bd282414 Merge pull request #22254 from JoshuaKGoldberg/pretty-watch-error-summaries
Added an errors summary for --pretty --watch results
2018-04-04 16:08:31 -07:00
Mohamed Hegazy ae714c58b7 Merge pull request #23154 from Microsoft/portGenerat3edLibFiles4-4
Port generated lib files
2018-04-04 16:00:11 -07:00
Nathan Shively-Sanders dca3a94f88 Print js-constructor function type names (#23089)
* Print js-constructor function type names

Instead of printing them as a type literal, which is scary.

* Use assigned name for functions and classes

That otherwise have no name. This helps quick info for javascript a
*lot*. Typescript mainly benefits when printing the type of class
expressions.

* Improve names of functions in binding elements

Also fix some fourslash baselines
2018-04-04 15:43:41 -07:00
Wesley Wigham 9b987eb947 Dont bind a local symbol for a default export without a name (#23152) 2018-04-04 15:26:10 -07:00
Mohamed Hegazy 460df57ce5 Port generated lib files 2018-04-04 15:19:32 -07:00
Wesley Wigham 355125d11b Report errors in JSX properties on the failing prop or the tag name (#23148) 2018-04-04 15:16:31 -07:00
Mohamed Hegazy 5f9c34bcd2 Update LKG 2018-04-04 15:13:24 -07:00
Andy 6286c7577d Allow rest parameter trailing commas in ambient contexts (#23139) 2018-04-04 11:33:29 -07:00