micbou
d97335e4e7
Silence NPM warnings when installing typings ( #19749 )
2017-11-06 09:45:52 -08:00
Anders Hejlsberg
8d991f70b3
Merge pull request #19741 from Microsoft/fixMappedTypeModifiers
...
Check combined mapped type modifiers
2017-11-06 09:35:28 -08:00
Anders Hejlsberg
a287ddc93b
Fix invariant generic error elaboration logic
2017-11-06 09:25:41 -08:00
Andy
0a7b7e07ee
Apply 'variable-name' tslint rule ( #19743 )
2017-11-06 09:23:47 -08:00
Nathan Shively-Sanders
db9ed00a0f
Remove readonly from index signatures of a spread
2017-11-06 08:14:43 -08:00
Anders Hejlsberg
a8160de49c
Empty array literal has a non-inferrable element type
2017-11-04 17:26:02 -07:00
Anders Hejlsberg
45c53e0dcc
Check combined modifiers in mappedTypeRelatedTo
2017-11-04 08:08:05 -07:00
Ron Buckton
ed914a8d47
Fix new lint error
2017-11-03 23:53:13 -07:00
Ron Buckton
31c3d444f1
Merge branch 'master' into compareStrings
2017-11-03 23:01:51 -07:00
Ron Buckton
211b2f01c2
Shave off ~100ms by extracting ExpandingFlags
2017-11-03 22:11:25 -07:00
Ron Buckton
208dfa6b01
Merge branch 'master' into dynamicNames
2017-11-03 22:10:28 -07:00
Andy
8d5b0529b2
Add localizable diagnostic for "Install '{0}'" ( #19651 )
2017-11-03 18:14:21 -07:00
Andy
845c066923
Check for unused locals in commonjs modules ( #19612 )
2017-11-03 17:46:19 -07:00
Andy
bb7fb7dda9
For getCompletionsAtPosition, require a flag to provide completions with code actions ( #19687 )
...
* For getCompletionsAtPosition, require a flag to provide completions with code actions
* Change name
* Increase API version
* Update API baselines
* Add comment
* Update API baseline
2017-11-03 15:55:31 -07:00
Anders Hejlsberg
f75a1dce88
Merge pull request #19726 from Microsoft/fixNeverTypeCall
...
Disallow calls on never type
2017-11-03 15:39:19 -07:00
Sheetal Nandi
373510c4d9
Handle the script infos that are opened with non rooted disk path
...
Fixes #19588
2017-11-03 15:38:58 -07:00
Andy
d998e97d8c
Apply 'prefer-for-of' tslint rule ( #19721 )
2017-11-03 15:20:35 -07:00
Andy
8b5d8565cf
Add CompletionDetailsFull request ( #19689 )
...
* Add CompletionDetailsFull request
* Update API baselines
* Make internal
2017-11-03 15:11:36 -07:00
Andy
cd9dbe694f
Enable 'only-arrow-functions' lint rule ( #19717 )
2017-11-03 15:08:50 -07:00
Andy
1d7f449a87
Minor cleanups in pathCompletions.ts ( #19685 )
...
* Minor cleanups in pathCompletions.ts
* Update name
2017-11-03 15:06:22 -07:00
Andy
749e151c23
Support path completions inside node_modules ( #19692 )
...
* Support path completions inside node_modules
* Fix: Start searching from current file's directory, not host.getCurrentDirectory()
* Add test for nested node_modules
* Also test in /src/folder/b.ts
2017-11-03 15:05:44 -07:00
Anders Hejlsberg
9fb06c60a8
Call on never type is not an untyped function call
2017-11-03 14:32:34 -07:00
Sheetal Nandi
668ac10890
Test where script info path and program path differ because of current directory
2017-11-03 11:51:16 -07:00
uniqueiniquity
21093503a8
Respond to CR
2017-11-03 11:19:53 -07:00
uniqueiniquity
612616a105
Loosen restrictions on jsdoc completion locations
2017-11-03 09:53:56 -07:00
Nathan Shively-Sanders
d03d489cb3
Merge branch '6229-known-length-tuples' of https://github.com/tycho01/TypeScript into 6229-known-length-tuples
2017-11-03 09:10:44 -07:00
csigs
adac1f398c
LEGO: check in for master to temporary branch.
2017-11-03 16:10:16 +00:00
Nathan Shively-Sanders
75882db684
Merge branch 'master' into 6229-known-length-tuples
2017-11-03 09:07:38 -07:00
Mohamed Hegazy
1e89e78dd2
Fix incorrect relative module name detection ( #19702 )
2017-11-03 08:59:19 -07:00
Andy
d54ad4b01a
Add refactoring to use default import ( #19659 )
...
* Add refactoring to use default import
* Add localizable description
2017-11-03 08:31:13 -07:00
Andy
cc2a2a79b5
Use NodeFlags to detect nodes in ambient contexts instead of climbing ancestors ( #17831 )
...
* Use NodeFlags to detect nodes in ambient contexts instead of climbing ancestors
* Set context flags on tokens
* Remove 'isDeclarationFile' parameter to 'initializeState' and move to 'parseSourceFileWorker'
* Changes based on code review
* Update API baselines
2017-11-03 08:08:48 -07:00
Anders Hejlsberg
a7e6c36012
Merge branch 'master' into fixIntersectionTypeInference
2017-11-02 20:07:53 -07:00
Anders Hejlsberg
a8d3cd6dfe
Merge pull request #19697 from Microsoft/fixFreshLiteralsInIntersections
...
Fix fresh literals in intersections
2017-11-02 17:37:55 -07:00
Anders Hejlsberg
add8b492c1
Merge pull request #19671 from Microsoft/nominalInstanceof
...
Improved handling of structurally identical classes
2017-11-02 17:37:23 -07:00
Andy
f67a9ba96e
Apply 'interface-name' lint rule ( #19695 )
2017-11-02 17:20:18 -07:00
Andy
c70eae4993
Enable 'no-this-assignment' lint rule ( #19696 )
2017-11-02 17:19:50 -07:00
Andy
fd41521421
Enable 'callable-types' tslint rule ( #19654 )
2017-11-02 17:16:09 -07:00
Anders Hejlsberg
5b0bcecfae
Properly handle intersection types in getUnmatchedProperty
2017-11-02 16:58:41 -07:00
Eugene Timokhov
c3e19ab131
Split ArrayConstructor.from method into 2 overloads #19682 ( #19693 )
2017-11-02 16:17:10 -07:00
Mohamed Hegazy
5979c9a206
Port generated lib files ( #19690 )
2017-11-02 15:11:38 -07:00
Andy
01ad4f7dfb
Support quick info at function and => locations ( #19669 )
...
* Support quick info at `function` and `=>` locations
* Fixes
2017-11-02 14:47:23 -07:00
Sheetal Nandi
85285bcae1
Merge pull request #19688 from Microsoft/npmInstallAtTypes
...
Handle cases when npm install doesnt get triggered with actual failed lookup location but instead the trigger is some folder in the node_modules
2017-11-02 14:31:08 -07:00
Anders Hejlsberg
6911acf80b
Remove freshness from literal types in intersections
2017-11-02 14:28:46 -07:00
Sheetal Nandi
2d5331edde
Handle cases when npm install doesnt get triggered with the actual file added
...
Fixes #19597
2017-11-02 13:45:50 -07:00
Andy
96232570a0
Remember to provide source for completionDetails from client.ts ( #19664 )
...
* Remember to provide source for completionDetails from client.ts
* Fix -- add "options" parameter too
* Mark "options" as unused
2017-11-02 13:42:23 -07:00
Kris Zyp
c557131cac
Ensure that we continue recursing into TS transforms ( #19650 )
...
* Ensure that we continue recursing into TS transforms when avoiding export elliding for transformed nodes, fix #19649
* Use more precise fix
2017-11-02 12:49:00 -07:00
uniqueiniquity
b1b611f40a
Add undefined to return type
2017-11-02 11:08:26 -07:00
uniqueiniquity
b17b7b9374
Revert "Update tests to expect empty doc comment template"
...
This reverts commit b566480aaa .
2017-11-02 11:00:30 -07:00
uniqueiniquity
12baae6c84
Revert "Return empty doc comment instead of undefined"
...
This reverts commit 22eb519b0f .
2017-11-02 10:59:58 -07:00
Nathan Shively-Sanders
8cfabcaeb4
Remove strictTuple flag and Tuple.length readonly
2017-11-02 10:07:47 -07:00