Alex Ryan
f9bd3afb8f
Fix comment typo in types.ts
2018-05-08 14:51:49 -07:00
Alex Ryan
4fb2add9a1
Fix comment typo in resolutionCache.ts
...
Another comment-only fix.
2018-05-08 14:27:40 -07:00
Alex Ryan
211b09b46c
Fix typo in parser.ts
2018-05-08 14:20:26 -07:00
Andy
5725428f2d
fixUnusedIdentifier: Handle destructure with all bindings unused ( #23805 )
...
* fixUnusedIdentifier: Handle destructure with all bindings unused
* Add parameters test
* Add test for 'for' loop
2018-05-08 13:33:55 -07:00
Wesley Wigham
556c316fed
Make new harness fake host more performant in large complications ( #23951 )
...
* Make new harness fake host more performant in large complications
* Use sortedmap
2018-05-08 12:46:33 -07:00
Sheetal Nandi
12790e8d83
Merge pull request #23910 from Microsoft/moduleUpdates
...
Support invalidating resolutions that are path mapped into sibling folder of root
2018-05-08 12:41:11 -07:00
Anders Hejlsberg
40e0ab72d2
Merge pull request #23966 from Microsoft/fixIndexedAccessAnyConstraint
...
Fix indexed access with 'any' constraint
2018-05-08 12:21:00 -07:00
Wesley Wigham
8ab5be9a86
Add hook for adding transforms into the declaration emit pipeline after the main one ( #23946 )
...
* Add hook for adding transforms into the declaration emit pipeline after the main one
* Fix lint
2018-05-08 11:20:48 -07:00
Anders Hejlsberg
ce6fd5eeaa
Exception for 'any' constraint only applies to type parameters
2018-05-08 09:42:03 -07:00
Ryan Cavanaugh
10f2eb5ff1
Pass setParentNodes through to parseJsonText
2018-05-07 15:39:00 -07:00
Ryan Cavanaugh
ffa0ccba2a
Project References Core support
2018-05-07 15:12:50 -07:00
Andy
cecad27662
findAllReferences: Treat a nested property in a jsdoc type literal as a definition ( #23901 )
...
* findAllReferences: Treat a nested property in a jsdoc type literal as a definition
* Fix lint
2018-05-04 16:58:07 -07:00
Andy
21a6a9afcc
Remove unused interface ( #23905 )
2018-05-04 15:51:46 -07:00
Sheetal Nandi
1a2fda0f56
Add support to update module resolutions on watches from mono repo like setup with path mapping
...
Fixes #22349
2018-05-04 15:39:06 -07:00
Wesley Wigham
618da24d6a
Look at simplified types when checking distributive conditional constraints ( #23884 )
2018-05-04 14:35:39 -07:00
Sheetal Nandi
5133c70e7e
Merge pull request #22167 from Microsoft/requireJson
...
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Sheetal Nandi
c4143ae0c1
Update the message for resolveJsonModule as per PR feedback
2018-05-04 11:14:39 -07:00
Sheetal Nandi
4e6586deb8
PR feedback
2018-05-04 10:45:46 -07:00
Ron Buckton
de10e82e8a
Add assertion message
2018-05-03 16:27:15 -07:00
Ron Buckton
a7074e2054
Minor changes to reduce stack depth during emit
2018-05-03 16:04:52 -07:00
Sheetal Nandi
15f9ea3d14
Merge branch 'master' into requireJson
2018-05-03 15:35:54 -07:00
Andy
406ca06e8e
Fix bug: JSDocPropertyTag is a declaration ( #23876 )
2018-05-03 14:19:15 -07:00
Wesley Wigham
eb80e9a51c
node builder should strive to preserve mapped type keyofness ( #23815 )
2018-05-03 12:38:31 -07:00
Wesley Wigham
23b9a23455
Ensure properties with computed names are visited ( #23787 )
2018-05-03 11:21:29 -07:00
Wesley Wigham
19a985eb24
Dont consider global augmentation top-level members as having the export modifier ( #23846 )
...
* Dont consider global argumentation top-level members as having the export modifier
* Remove unneeded test parts from repro
2018-05-03 11:21:11 -07:00
Wesley Wigham
b467cd8a99
Move property errors to the name for the error span ( #23865 )
2018-05-03 10:55:44 -07:00
Wesley Wigham
41182c2f0b
Stop using circularity-unchecked-caching ( #23808 )
...
* Stop using circularity-unchecked-caching
* Add comment
2018-05-03 10:44:17 -07:00
Ron Buckton
56648ad0f1
Merge pull request #20763 from Microsoft/vfs
...
Update harness to use single robust virtual file system for tests.
2018-05-03 10:25:20 -07:00
Armando Aguirre
1d593fd81e
Merge pull request #23191 from armanio123/AddVueSupport
...
Added deferred ScriptKind and renamed JsFileExtensionInfo to FileExte…
2018-05-02 18:13:34 -07:00
Ron Buckton
88d5d6fccc
Merge pull request #23834 from Microsoft/generateNamesEarlier
...
Pre-generate names ahead of time
2018-05-02 17:51:37 -07:00
Armando Aguirre
b8ddc0dabb
Rollback fileExtensionIs
2018-05-02 17:17:55 -07:00
Wesley Wigham
9c40d276ab
Downlevel destructuring in module transformer if destructured variable has multiple names ( #23832 )
...
* Downlevel destructuring in module transformer if destructured variable has multiple names
* Alter indentation
2018-05-02 16:20:47 -07:00
Wesley Wigham
b5b7fc4f1d
Flag default imports with named imports as needing importStar ( #23795 )
...
* Flag default imports with named imports as needing importStar
* Restructure helpers a bit, add double-default testcase
2018-05-02 16:20:34 -07:00
Ron Buckton
ab8c3fa3ac
Pre-generate names ahead of time
2018-05-02 13:34:14 -07:00
Ron Buckton
66c11c527a
Update completion order in test
2018-05-02 10:51:09 -07:00
Ron Buckton
860f9f88f6
Update documentation comments
2018-05-01 19:02:35 -07:00
Ron Buckton
d62a11ffc0
Merge branch 'master' into vfs
2018-05-01 18:58:31 -07:00
Ron Buckton
1dff0af646
More path cleanup
2018-05-01 18:53:54 -07:00
Wesley Wigham
c663645c91
Inform getDeclarationSpaces about how an imported exportAssignment may merge ( #23816 )
2018-05-01 17:24:30 -07:00
Anders Hejlsberg
3bfbe68b5a
Merge pull request #23806 from Microsoft/objectAndUnconstrainedTypeParameter
...
Unconstrained type variable not assignable to 'object'
2018-05-01 13:24:16 -07:00
Anders Hejlsberg
1de8c65678
Unconstrained type parameter not assignable to 'object'
2018-05-01 12:38:29 -07:00
Andy
cee4289f58
Add code fix to convert 'require' in a '.ts' file to an 'import' ( #23711 )
...
* Add code fix to convert 'require' in a '.ts' file to an 'import'
* Only add suggestion for modules
* Revert "Only add suggestion for modules"
This reverts commit b1a728fdac .
2018-05-01 09:24:02 -07:00
Sheetal Nandi
97df079feb
PR feedback
2018-04-30 17:05:22 -07:00
Nathan Shively-Sanders
5ea4d3b2bb
No error for require, module.exports or exports in Javascript ( #23743 )
...
* No error for require
Still errors for module and exports, and require's type is now
incorreclty 'any'; I broke module resolution somehow. Needs
investigation.
* module/exports symbols+update isCommonJsRequire
Everything passes the tests but the code can be improved
* Update baselines
* Cleanup
* Update baselines of new tests
* Get rid of exports symbol
It wasn't doing anything anyway.
2018-04-30 15:47:59 -07:00
Nathan Shively-Sanders
7cda045d52
Always export typedefs ( #23723 )
...
* Always export typedefs
This actually just required deleting a check in declareModuleMembers
and checking for external AND commonjs modules in a couple of places.
However, while experimenting with this feature, I discovered that even
previously-exported typedefs would only be exported if they came after a
commonjs export node. So I added a commonjs check to the pass in the
parser. It will not catch nested module.exports, but it will catch
top-level assignments.
The new test tests both changes.
* Post-bind typedef instead of pre-checking for commonjs
* Duplicate identifier errors
* Fix class type reference resolution+update baselines
* Move to a type-based check for duplicate identifiers
2018-04-30 14:55:26 -07:00
Mohamed Hegazy
0bbf4d5c48
Merge pull request #23785 from dsifford/dsifford-lib-intl-fix
...
add lib.es2018.intl + fix lib.es2017.intl
2018-04-30 14:45:15 -07:00
Wesley Wigham
0c244d86b3
Add used-before-declaration errors for class refs inside computed names ( #23784 )
2018-04-30 12:55:30 -07:00
Sheetal Nandi
96b2cf8aba
Merge pull request #23597 from Microsoft/inferredProjects
...
Do not remove inferred project till next file open so we can reuse them
2018-04-30 12:54:15 -07:00
Sheetal Nandi
cec5aafcbf
Merge pull request #23783 from Microsoft/tscWatchInfo
...
More detailed log during watch in tsc showing what the watcher is invoked for.
2018-04-30 12:53:59 -07:00
Derek P Sifford
cc0c82c014
add lib.es2018.intl + fix lib.es2017.intl
...
closes #23691
2018-04-30 15:17:00 -04:00