Commit Graph

22508 Commits

Author SHA1 Message Date
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
Nathan Shively-Sanders
c4a504b3ce Prototype assignments count as method-like (#23137)
* Prototype assignments count as method-like

For the purposes of reporting prototype/instance property conflicts

* Fix lint
2018-04-04 11:03:31 -07:00
Josh Goldberg
0dbebec28f Feedback: correct order in watch.ts; DRY tests 2018-04-04 13:21:19 -04:00
csigs
04db4aed0c LEGO: Merge pull request 23136
LEGO: Merge pull request 23136
2018-04-04 09:10:53 -07:00
csigs
9143aa4719 LEGO: check in for master to temporary branch. 2018-04-04 16:10:30 +00:00
Nathan Shively-Sanders
eb3a9d05df Fix factorial jsdoc search:chained assignments (#23115) 2018-04-04 08:57:13 -07:00
Andy
5b928a3d00 patternMatcher: Use helper functions to simplify loops over strings (#23095)
* patternMatcher: Use helper functions to simplify loops over strings

* Fix bug
2018-04-04 08:37:14 -07:00
Andy
4aeb295e3a completions: Properly handle preferences.includeCompletionsWithInsertText (#23092) 2018-04-04 08:36:48 -07:00
Andy
1e227c6d77 Add type predicate helper functions to Type (#23066) 2018-04-04 08:10:09 -07:00
Mohamed Hegazy
db74229a89 Merge pull request #19317 from igelbox/fix-insert-space-after-function-generic
Fixed incorrect insertSpaceBeforeFunctionParenthesis behavior on funtions with type-arguments
2018-04-03 16:11:30 -07:00
Nathan Shively-Sanders
6b158de866 No error referring to UMD symbol in CommonJS modules (#23129) 2018-04-03 16:10:09 -07:00
Wesley Wigham
78ba32a110 Allow multiple class base types; intersect them, as with interfaces (#23123) 2018-04-03 16:08:52 -07:00
Mohamed Hegazy
a4593fd6db Merge pull request #22261 from ajafff/factory-array
factory: replace Array parameters with ReadonlyArray
2018-04-03 15:00:56 -07:00
Wesley Wigham
343bb5ac70 Actuallt preserve nonblock for of statements in forofs with object rest (#23122) 2018-04-03 13:32:42 -07:00
Wesley Wigham
c676893dc9 SyntaxKind.ImportTypeNode -> SyntaxKind.ImportType (#23120) 2018-04-03 13:32:03 -07:00
Mohamed Hegazy
84548d5c9b Merge pull request #22049 from Kingwl/spelling-fix
replace element access if suggession is not a valid identifier
2018-04-03 13:29:43 -07:00
Benjamin Lichtman
29ceffd236 Merge pull request #23077 from uniqueiniquity/spacesInLogPath
Ensure TSS_LOG handles paths with spaces
2018-04-03 13:12:13 -07:00
Anders Hejlsberg
6646717ce7 Merge pull request #23112 from Microsoft/fixTPReferenceLookups
Fix type parameter reference lookups
2018-04-03 12:32:05 -07:00
Wesley Wigham
cbce76ed13 Consider jscontainer aliases as referencible even if they have other local meanings (#23119) 2018-04-03 12:27:16 -07:00
Wesley Wigham
a81a645128 Enable member completions for import types (#23085)
* Enable member completions for import types

* Add missing semicolon

* Compact statements

* Ye doth compacteth too much

* Handle class accesibility
2018-04-03 11:53:01 -07:00
csigs
9a3e2fc9c2 LEGO: Merge pull request 23113
LEGO: Merge pull request 23113
2018-04-03 09:10:47 -07:00
csigs
dd2809e7a0 LEGO: check in for master to temporary branch. 2018-04-03 16:10:26 +00:00
Anders Hejlsberg
6ea2745643 Accept new baselines 2018-04-03 09:04:42 -07:00
Anders Hejlsberg
cdf155e980 Add regression test 2018-04-03 09:04:36 -07:00
Anders Hejlsberg
e584243d60 Only look up identifiers that could actually be type parameters 2018-04-03 09:04:24 -07:00
Nathan Shively-Sanders
11eabc0946 Skip parens and non-null assertions when looking for this-context (#23097)
* Skip parens and ! for getting this-context of call

* Add test and improve code a bit

* Use skipOuterExpressions instead
2018-04-03 06:23:59 -07:00
csigs
a2c11bb7a0 LEGO: Merge pull request 23108
LEGO: Merge pull request 23108
2018-04-03 03:10:53 -07:00
csigs
1ca68d0d96 LEGO: check in for master to temporary branch. 2018-04-03 10:10:33 +00:00
csigs
ae61ebac8d LEGO: Merge pull request 23102
LEGO: Merge pull request 23102
2018-04-02 22:23:16 -07:00
csigs
79aa1995da LEGO: check in for master to temporary branch. 2018-04-03 05:22:53 +00:00
王文璐
414266cc32 Merge branch 'master' into spelling-fix 2018-04-03 10:51:40 +08:00
Andy
92dfde0067 matchTextChunk: combine a) and b) cases (#23083) 2018-04-02 18:09:09 -07:00
Andy
1e04bd4168 Support completions for members with symbol names (#23091) 2018-04-02 18:08:00 -07:00
Anders Hejlsberg
751eab9eed Merge pull request #23067 from Microsoft/fixTPReferenceInConditional
Fix type parameter reference checks in conditional types
2018-04-02 17:30:32 -07:00
Mohamed Hegazy
e6fa4e4415 Merge pull request #23043 from alan-agius4/feature/compiler-host-falsy-file
fix: `CompilerHost.getSourceFile` is being called for odd filenames
2018-04-02 17:08:31 -07:00
uniqueiniquity
36cdb52b17 Handle double quotes for every argument 2018-04-02 16:41:29 -07:00
Andy
955542df8e Simplify matchTextChunk (#23081) 2018-04-02 16:20:07 -07:00
Wesley Wigham
fd553df3a6 Path completions for import types (#23082)
* Path completions

* Add missing flag to test

* Minify test, fix lint
2018-04-02 16:15:50 -07:00
uniqueiniquity
8f503fb483 Close over getLogPath 2018-04-02 15:38:04 -07:00