22476 Commits

Author SHA1 Message Date
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
uniqueiniquity
e625a6a9b4 Use object destructuring instead of tuple 2018-04-02 15:12:26 -07:00
Andy
7eaad14bf9
Work around bug with global completion with invalid identifier (#23086) 2018-04-02 14:58:08 -07:00
uniqueiniquity
ffbb046cd4 Consume extra parts of file path 2018-04-02 13:58:31 -07:00
Andy
8e14ac7d51
Improve string literal completions from a signature (#23062) 2018-04-02 13:01:31 -07:00
uniqueiniquity
361be11a04 Remove trailing whitespace 2018-04-02 12:32:15 -07:00
Andy
65323e046a
Unclosurefy patternMatcher (#23071) 2018-04-02 12:21:48 -07:00
Nathan Shively-Sanders
d3e0929b14
Mark js-assignment functions' symbols as methods (#23078)
This make display more accurate:
1. The functions now print as methods
2. When the type of the function references the class, the type of the
function itself is now printed correctly instead of as `any`.
2018-04-02 12:17:35 -07:00
Andy
72e92a0558
Remove unused properties from patternMatcher (#23076) 2018-04-02 12:02:35 -07:00
Alan Agius
7e482b27fb fix: CompilerHost.getSourceFile is being called for odd filenames besides the one being compiled
Ignore falsy file names from `getDefaultLibraryFileName`

Closes: #13629
2018-04-02 20:58:37 +02:00
Andy
8cdd1aecca
Simplify 'bestMatchKind' (#23073) 2018-04-02 11:57:19 -07:00
Andy
0d063d6161
Update baselines for chained prototype assignments (#23075) 2018-04-02 11:15:17 -07:00
uniqueiniquity
0238991cd3 Ensure TSS_LOG handles paths with spaces 2018-04-02 11:04:52 -07:00
Mohamed Hegazy
5ae14bc038
Merge pull request #23069 from Microsoft/portGenerat3edLibFiles4-2
Port generated lib files
2018-04-02 10:44:48 -07:00
Andy
d5142a7f45
Don't offer import completions in non-module files unless "--module" is set (#22951)
* Don't offer import completions in non-module files unless "--module" is set

* Even smarter shouldOfferImportCompletions
2018-04-02 10:21:14 -07:00
Wesley Wigham
414bc49cc4
Module or import types (#22592)
* Type side of import types

* Value side of import types

* Accept library changes

* Refined implementation, more tests

* Allow resolutions to be performed late if the resolution still results in a file already in the build

* Add another test case

* Add some jsdoc usages

* Allow nodebuilder to use import types where appropriate

* Parse & check generic instantiations

* use import types in nodebuilder for typeof module symbols

* Wire up go to definition for import types

* Accept updated type/symbol baselines now that symbols are wired in

* PR feedback

* Fix changes from merge

* Walk back late import handling

* Remove unused diagnostic

* Remove unrelated changes

* Use recursive function over loop

* Emit type arguments

* undo unrelated change

* Test for and support import type nodes in bundled declaration emit
2018-04-02 10:18:23 -07:00
Mohamed Hegazy
f29a51fd2e Port generated lib files 2018-04-02 10:12:03 -07:00
Nathan Shively-Sanders
5c442419dc
Include arrow functions as javascript initializers (#23068)
This means that they are treated as valid js containers, methods, etc.
2018-04-02 10:11:39 -07:00
Nathan Shively-Sanders
6d9a8250bd
Improve binding and jsdoc of chained special js assignments (#23038)
* Search for jsdoc on chained assignments

* Fix binding of chained binary expression js-assignments

* Test:chained jsdoc+chained prototype assignment

* Improve naming
2018-04-02 09:47:01 -07:00
Anders Hejlsberg
c2f96a3c7d Accept new baselines 2018-04-02 09:23:16 -07:00
Anders Hejlsberg
ec02ccd575 Add regression test 2018-04-02 09:23:00 -07:00
Anders Hejlsberg
d093d6a1f8 Less aggressive test for type parameter references in conditional types 2018-04-02 09:22:46 -07:00
csigs
c02b4f2d7d
LEGO: Merge pull request 23064
LEGO: Merge pull request 23064
2018-04-02 09:10:46 -07:00
csigs
b3b7909a2a LEGO: check in for master to temporary branch. 2018-04-02 16:10:24 +00:00