Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
babb88a
Remove duplicate function (#17807)
Aug 17, 2017
b8e0ded
Fix #17069 and #15371
sandersn Aug 17, 2017
1b4f907
Test getConstraintOfIndexedAccess fixes and update baselines
sandersn Aug 17, 2017
a187b17
Simplify mapped-type handling in computeBaseConstraint
sandersn Aug 17, 2017
eef7d8b
Treat explicit imports from `node_modules` as external library import…
Aug 17, 2017
fad97e3
Remove debug assertions due to invalid syntax in generators transform
rbuckton Aug 18, 2017
e7d2af0
remove duplicate verify
aozgaa Aug 18, 2017
e4e969a
respond to comments
aozgaa Aug 18, 2017
fa6773e
Type parameters from class should not be in scope in base class expre…
ahejlsberg Aug 18, 2017
ade3b56
Revert public API changes to logger (#17899)
Aug 18, 2017
439cdca
Merge pull request #17870 from Microsoft/fix-getConstraintOfIndexedAc…
aozgaa Aug 18, 2017
6b68da1
Revert "Fix getConstraintOfIndexedAccess"
aozgaa Aug 18, 2017
487ba21
Merge pull request #17903 from Microsoft/revert-17870-fix-getConstrai…
aozgaa Aug 18, 2017
ecd2ae8
Deduplicate inputfiles before running RWC tests (#17877)
weswigham Aug 18, 2017
4983e11
Added test for leading underscore property name suggestions.
DanielRosenwasser Aug 18, 2017
4ac9091
Accepted baselines.
DanielRosenwasser Aug 18, 2017
a3d113b
Merge pull request #16385 from aozgaa/isInMultiLineComment
aozgaa Aug 18, 2017
70ad2bd
Ensure that property suggestions are correctly escaped.
DanielRosenwasser Aug 18, 2017
50671c3
Try to provide a spelling suggestion when object literals have excess…
DanielRosenwasser Aug 18, 2017
8b10ea4
Accepted baselines.
DanielRosenwasser Aug 18, 2017
8e5e6c6
Update .npmignore (#17905)
mhegazy Aug 18, 2017
a14aaf4
Add release-2.5 to covered branches
mhegazy Aug 18, 2017
7cc6bfc
Only give suggestions when the name is an identifier.
DanielRosenwasser Aug 18, 2017
e6c1afb
Style changes and cleanup
uniqueiniquity Aug 18, 2017
45c62ac
Merge pull request #17709 from uniqueiniquity/objectsInArray
uniqueiniquity Aug 18, 2017
a136f55
Fix stack overflow when resolving default construct signatures (#17878)
weswigham Aug 19, 2017
5e8e735
quickInfo: Don't check for `type === undefined`, check for `any` (#17…
Aug 19, 2017
7739a1c
Actually misspell the property name.
DanielRosenwasser Aug 19, 2017
a1ad389
Accepted baselines.
DanielRosenwasser Aug 19, 2017
35addce
Add comment
ahejlsberg Aug 19, 2017
049b336
Accept new baselines
ahejlsberg Aug 19, 2017
914d428
Add regression test
ahejlsberg Aug 19, 2017
07e1d3b
Ensure string enums are generated in protocol.d.ts (#17914)
mhegazy Aug 21, 2017
2b28916
Simplify resolveBaseTypesOfClass (#17918)
Aug 21, 2017
ac09853
export UsageEntry used by already exported functions 🌹 (#17853)
basarat Aug 21, 2017
2b10784
Merge pull request #17922 from Microsoft/baseExpressionTypeParameters
ahejlsberg Aug 22, 2017
a3a2ff5
Optimize relations for type references with unconstrained type arguments
ahejlsberg Aug 22, 2017
11c4c4c
Fix to use correct target type ID
ahejlsberg Aug 22, 2017
6678d96
Update imaged with Java 8 and other patches (#17965)
mmitche Aug 22, 2017
b217d96
Merge pull request #17839 from RyanCavanaugh/ignoreScripts
RyanCavanaugh Aug 22, 2017
053b915
Rebase SymbolWalker change onto master
weswigham Jul 20, 2016
2c8a5c4
Make SymbolWalker internal
weswigham Jul 26, 2016
801c1f7
Reshape SymbolWalker API
amcasey Aug 15, 2017
f2eacc6
Use Maps to store visited types and symbols
amcasey Aug 15, 2017
129ace5
Update SymbolWalker tests
amcasey Aug 15, 2017
8cbf42c
Fix lint errors
amcasey Aug 16, 2017
d7ace20
Fix copy-paste error
amcasey Aug 17, 2017
1a20b6a
Add support for walking IndexTypes, IndexedAccessTypes, and MappedTypes.
amcasey Aug 17, 2017
e02da34
Retrieve type parameter constraint using getConstraintFromTypeParameter
amcasey Aug 17, 2017
8944774
Reuse exiting getFirstIdentifier function
amcasey Aug 22, 2017
40e9e85
Merge branch 'master' into excessPropCorrection
DanielRosenwasser Aug 22, 2017
bdc2aa8
Allow use before declaration for export= assignments (#17967)
weswigham Aug 22, 2017
009d9b4
For JSX Attributes, map over unions of props for contextual types (#1…
weswigham Aug 22, 2017
43b8ce6
Merge
RyanCavanaugh Aug 22, 2017
a6015e9
Merge pull request #17879 from Microsoft/fix17875
rbuckton Aug 22, 2017
15e15ab
Merge pull request #17468 from RyanCavanaugh/newTypesMap
RyanCavanaugh Aug 22, 2017
8d44e48
Fix instrumenter target + deprecation warning (#17973)
weswigham Aug 22, 2017
f8e8afe
Accepted baselines.
DanielRosenwasser Aug 23, 2017
e3abc12
Revert image label change (#17981)
mmitche Aug 23, 2017
e27d091
Test performance improvement:nested reference skip
sandersn Aug 21, 2017
7a94913
Update baselines
sandersn Aug 23, 2017
f30931c
Comment getTypeReferenceId and getRelationKey
sandersn Aug 23, 2017
deaddb5
Ports #17983 (#17986)
mhegazy Aug 23, 2017
2b9aba4
Merge pull request #17984 from Microsoft/typeReferenceRelations
sandersn Aug 23, 2017
49676c5
Merge pull request #17844 from amcasey/SymbolWalker
amcasey Aug 23, 2017
8d13314
Expose isSourceFileFromExternalLibrary (#16112)
ajafff Aug 23, 2017
71c5b1b
Parsing:Allow QuestionToken as start of type
sandersn Aug 23, 2017
ca86dc4
Test:jsdoc nullable syntax legal in type arguments
sandersn Aug 23, 2017
356f54a
Merge pull request #17994 from Microsoft/allow-question-token-as-star…
sandersn Aug 23, 2017
a52030d
Merge pull request #17907 from Microsoft/excessPropCorrection
DanielRosenwasser Aug 23, 2017
1bae5f2
Update generated files (#17995)
mhegazy Aug 24, 2017
26a0286
Fix crash when exporting class without name
rbuckton Aug 24, 2017
40f9ee4
Merge pull request #16767 from Yogu/patch-2
rbuckton Aug 24, 2017
cd2ea9a
Update LKG (#17993)
Aug 24, 2017
2fede09
Add helper functions for adding an item to an array only if it's not …
Aug 24, 2017
a025192
Test:allow more jsdoc types in type parameter lists
sandersn Aug 24, 2017
377ac06
Allow ! and ... as start-of-type tokens
sandersn Aug 24, 2017
e2141ad
Mark some arrays as readonly (#17725)
Aug 24, 2017
c4ed554
Simplify `isExpression` check (#17741)
Aug 24, 2017
038d256
Merge pull request #17996 from Microsoft/fix16681
rbuckton Aug 24, 2017
610104b
Switch to arrow for ts class wrapper IIFE
rbuckton Aug 24, 2017
5534899
Allow string enums in element access
sandersn Aug 24, 2017
d7d69a1
Test:string enum in element access
sandersn Aug 24, 2017
ccd0158
Added additional test
rbuckton Aug 24, 2017
2f1bd8c
Escape \0 followed by a number as a hex escape to avoid printing an o…
weswigham Aug 24, 2017
336df75
Fix issue #16803 do not error on getters/setters (#18031)
weswigham Aug 24, 2017
f824e72
Give mapped type properties a synthetic declaration name (#18023)
weswigham Aug 24, 2017
4c68b6d
Merge pull request #16686 from Microsoft/fix16467
rbuckton Aug 25, 2017
05402b8
Merge pull request #18027 from Microsoft/fix16924
rbuckton Aug 25, 2017
643a7e7
Call dynamic import transform on expression used by export equal stat…
weswigham Aug 25, 2017
62eaaf9
Fix crash when attempting to merge an import with a local declaration…
weswigham Aug 25, 2017
616bb5f
Defer mapped type indexed access transformations
ahejlsberg Aug 25, 2017
3d3ed04
Perform indexed access type transformations consistently
ahejlsberg Aug 25, 2017
cf998bf
Accept new baselines
ahejlsberg Aug 25, 2017
e79d75a
Add regression test
ahejlsberg Aug 25, 2017
3a0ab74
Test for action description of code actions, and simplify description…
Aug 25, 2017
fe1242c
Don't try to extract `import` to a method (#18025)
Aug 25, 2017
555a742
Merge pull request #18042 from Microsoft/fixMappedTypeIndexedAccess
ahejlsberg Aug 25, 2017
6f6c3c2
Merge branch 'master' into dynamicFiles
Aug 25, 2017
bdfb92a
Fix crash in name resolution with custom transforms and emitDecorator…
rbuckton Aug 25, 2017
69a8504
Merge pull request #17791 from Microsoft/dynamicFiles
paulvanbrenk Aug 25, 2017
38c3f67
Visit destructuring computed names (#18052)
weswigham Aug 25, 2017
eb75619
Merge pull request #18051 from Microsoft/fix17551
rbuckton Aug 25, 2017
4d05bfd
`moduleAugmentations` may contain an `Identifier` (#18009)
Aug 25, 2017
e73b10a
Use isPartOfExpression in extractMethod, not isExpression (#18047)
Aug 25, 2017
a32d99d
Use visitNode (#18059)
weswigham Aug 26, 2017
884cadf
Fix TypeScript printer bug when encountering regular expression literals
Aug 27, 2017
170bc6f
Add test for #18071
Aug 27, 2017
b21d3f0
Move browser-resolve to devDependencies
Aug 28, 2017
e54828f
Merge pull request #18084 from Microsoft/deps
RyanCavanaugh Aug 28, 2017
117ef21
Always use case-insensitive fs operartions for RWC (#18046)
weswigham Aug 28, 2017
197040d
Merge branch 'master' into allow-string-enum-in-element-access
sandersn Aug 28, 2017
8087206
Explain boolean exception in getIndexedAccessType
sandersn Aug 28, 2017
bab287d
Simplify getAccessibleSymbolChain (#18053)
Aug 28, 2017
278dcc6
Merge pull request #18029 from Microsoft/allow-string-enum-in-element…
sandersn Aug 28, 2017
a60b103
Merge pull request #18077 from fwouts/regex-bug
DanielRosenwasser Aug 28, 2017
934da9f
Remove template strings in checker.ts (#18016)
Aug 28, 2017
3ea031c
Fix RWC - use replayLog, not recordLog (#18095)
weswigham Aug 28, 2017
16ccb66
Provide jsdoc type code fixes for all variable-like decls
sandersn Aug 28, 2017
b082c27
Test:jsdoc codefix for variable-like declarations
sandersn Aug 28, 2017
30b3cb0
Handle indexed access types in getSymbolAtLocation and findAllReferen…
Aug 29, 2017
e3b1487
Check all properties are present before checking types in relationships
ahejlsberg Aug 29, 2017
86930c9
Accept new baselines
ahejlsberg Aug 29, 2017
7306b13
Don't issue a use-before-declared error for a property that exists in…
Aug 29, 2017
9daa70c
Revert "Handle indexed access types in getSymbolAtLocation and findAl…
Aug 29, 2017
6168d6f
Inline checkLiteralExpression (#17720)
Aug 29, 2017
78524c1
Avoid climbing ancestors in `getAnyImportSyntax` (#17832)
Aug 29, 2017
7ac4380
Use getPropertyOfObjectType to get a superclass property (#18113)
Aug 29, 2017
2350d46
Simplify isContextSensitive (#17722)
Aug 29, 2017
63cb84f
Codefix jsdoc types for anything with a .type
sandersn Aug 29, 2017
30802cd
Handle loose type parameters in Extract Method
amcasey Aug 11, 2017
b2cc722
Comment out headers in Extract Method baselines
amcasey Aug 16, 2017
bf0333a
Delete unused baselines
amcasey Aug 16, 2017
ee80019
Switch from .js to .ts so that baselines are syntactically valid
amcasey Aug 16, 2017
b09d227
Test that in-scope type parameters are not passed explicitly
amcasey Aug 16, 2017
fe015ef
Document failure to handle type parameter shadowing
amcasey Aug 16, 2017
0c8d85f
Test that type parameters used in constraints are passed along
amcasey Aug 16, 2017
01d7f0b
Test that the return type of the extracted method counts as usage
amcasey Aug 17, 2017
e08dce2
Test different parameters on classes and methods
amcasey Aug 17, 2017
c9f6bc6
Test coupling of type parameters
amcasey Aug 17, 2017
a816079
Add perf comment
amcasey Aug 17, 2017
450c32a
Add an ExpandingFlags const enum (#17740)
Aug 29, 2017
ea4fdc5
Merge pull request #17988 from amcasey/ExtractGeneric
amcasey Aug 29, 2017
0e2d399
Don't crash when a JS file appears in an inferred context
RyanCavanaugh Aug 29, 2017
d7b3b6c
Merge pull request #18120 from RyanCavanaugh/fix457864
RyanCavanaugh Aug 29, 2017
fa77e14
Merge pull request #17811 from RyanCavanaugh/fix17544
RyanCavanaugh Aug 29, 2017
19c3a15
Allow cancellation during extract method's symbol walking
amcasey Aug 29, 2017
27e590d
Merge pull request #18121 from amcasey/WalkerCancel
amcasey Aug 30, 2017
3f09011
Optimize array operations to reduce memory footprint
ahejlsberg Aug 30, 2017
2b4b629
Remove `largeSource` argument to `convertMap.fromSource` (#18098)
Aug 30, 2017
562abf3
Follow up on #16223 cleaning up Array declarations (#18116)
mhegazy Aug 30, 2017
601c113
Handle indexed access types in getSymbolAtLocation and findAllReferen…
Aug 30, 2017
effa259
Cache contextual type for || operator to avoid exponential compile time
ahejlsberg Aug 30, 2017
4c54323
Update Authors.md
mhegazy Aug 30, 2017
42b6606
Add regression test
ahejlsberg Aug 31, 2017
e294b23
Merge pull request #18174 from Microsoft/fixContextualTypeLogicalOr
ahejlsberg Aug 31, 2017
3e85015
Propagate isRestParameter through symbol instantiation (#18087)
weswigham Aug 31, 2017
3d0c239
Update generated files (#18173)
mhegazy Aug 31, 2017
c7b4ed3
Fix extract method for anon class expressions (#18168)
mjbvz Aug 31, 2017
c9d081e
Expand type references recursively in cache key
sandersn Sep 1, 2017
7a4c3da
Simplify return type parsing (#18206)
Sep 1, 2017
520d7ff
Add depth limit to recursive type reference id generation
sandersn Sep 1, 2017
541920e
Merge pull request #18014 from Microsoft/allow-bang+dotdotdot-as-star…
sandersn Sep 1, 2017
b65ff64
Improved caching scheme for anonymous types
ahejlsberg Sep 2, 2017
601a21c
Fix signature help
ahejlsberg Sep 2, 2017
319617c
Optimize caching of type literals
ahejlsberg Sep 3, 2017
a0c4094
Accept new baselines
ahejlsberg Sep 3, 2017
82281d9
Fix linting errors
ahejlsberg Sep 3, 2017
1edecac
Merge pull request #18126 from Microsoft/propertyRelations
ahejlsberg Sep 3, 2017
d4708dc
Merge branch 'master' into recursive-type-reference-cache
sandersn Sep 5, 2017
2fc14d8
Remove added type predicates
sandersn Sep 5, 2017
b6c708d
Merge pull request #18207 from Microsoft/recursive-type-reference-cache
sandersn Sep 5, 2017
3a164b9
Improve baseline of complexRecursiveCollections
sandersn Sep 5, 2017
6c8bc18
Merge pull request #18231 from Microsoft/cacheAnonymousTypes
ahejlsberg Sep 5, 2017
6ae7617
Add test for #14574 (#18024)
weswigham Sep 5, 2017
d790f1d
Merge pull request #18258 from Microsoft/improve-complexRecursiveColl…
sandersn Sep 5, 2017
9c6765d
Document ThrottledOperations.schedule
amcasey Sep 5, 2017
95bf71f
Use canonicalized forms when comparing signatures
ahejlsberg Sep 6, 2017
482e802
Limit the number of unanswered typings installer requests
amcasey Sep 5, 2017
fc16330
Minor changes
ahejlsberg Sep 6, 2017
7c69dd8
Disable lookahead in isStartOfParameter/isStartOfType
sandersn Sep 6, 2017
afdd9b5
Merge pull request #18279 from Microsoft/canonicalSignatures
ahejlsberg Sep 6, 2017
36607e1
Allow quoted names in completions (#18162)
Sep 6, 2017
73eff81
Fix 18224 (#18259)
weswigham Sep 6, 2017
697c4d3
Add `debugName` property to `Rule` (#18289)
Sep 6, 2017
0b1bad8
Fix lint issues
amcasey Sep 6, 2017
9692ce8
Add explanatory comment
amcasey Sep 6, 2017
a5c2eac
Test:disable lookahead in isStartOfParameter
sandersn Sep 6, 2017
5c779b1
Allow singleline string writer to be recursively used (#18297)
weswigham Sep 7, 2017
ed61d2d
Emit updated export declarations when transformed from export * (#18017)
weswigham Sep 7, 2017
72884b8
Emit comments on system export default expressions on the surrounding…
weswigham Sep 7, 2017
c3e0906
Do not consider UMD alias symbols as visible within external modules …
weswigham Sep 7, 2017
72cbc12
Allow undefined/null to override all parameters (#18058)
weswigham Sep 7, 2017
53b5abe
Update `fromCodeFixContext` (#18290)
Sep 7, 2017
8c714c3
Support special JS property assignments in doc comment templates (#18…
Sep 7, 2017
0434fe7
Get quickInfo from a contextual type if possible (#18119)
Sep 7, 2017
23f793f
findAllReferences: Handle root symbols of binding element property sy…
Sep 7, 2017
817c329
getFormattingScanner: Ensure scanner is closed, and avoid global vari…
Sep 7, 2017
b3c87aa
Support find-all-references for `default` keyword (#17992)
Sep 7, 2017
b533b24
extractMethod: Don't try to extract a single token (#18090)
Sep 7, 2017
7541c70
Support navTo for special assignment kinds (#18154)
Sep 7, 2017
b84e6bc
Merge pull request #18096 from Microsoft/fix-codefix-jsdoc-variableli…
sandersn Sep 7, 2017
90d9f3d
Rename isStartOfType parameter used by isStartOfParameter
sandersn Sep 7, 2017
be06338
Don't provide string literal completions for string enums (#18288)
Sep 7, 2017
193f4be
Enable interface-over-type-literal lint rule (#17733)
Sep 7, 2017
59aa29b
Added only the source file (#18175)
taras Sep 7, 2017
7b12b79
ts.server.ProjectService.closeConfiguredProject returns true on succe…
NaridaL Sep 7, 2017
a8dfdf2
Add and fix some AST Node parent types (#18200)
ajafff Sep 7, 2017
c82881f
Fix build break
mhegazy Sep 7, 2017
69933bd
expose isExternalModuleNameRelative and moduleHasNonRelativeName (#17…
ajafff Sep 7, 2017
39d0590
Adds comment
weswigham Sep 7, 2017
c1f2afd
Add typedef declaration space, unify typedef name gathering (#18172)
weswigham Sep 7, 2017
de313ff
Object.getOwnPropertyDescriptor() returns 'undefined' if property des…
avchugaev Sep 7, 2017
8d1eb29
Merge pull request #18265 from amcasey/ThrottledOperations
amcasey Sep 7, 2017
097b094
Don't get typings for projects with disabled language services
amcasey Sep 7, 2017
ac58751
Object literals computed property names allow literal-typed expressions
sandersn Sep 7, 2017
3c5b2a5
Test Literal-typed computed property names in obj literals
sandersn Sep 7, 2017
727facb
fix initialization of shouldCreateNewSourceFiles (#17686)
Sep 7, 2017
de940af
Update README.md (#17714)
ziishaned Sep 7, 2017
b29e0c9
Update README.md
mhegazy Sep 7, 2017
6695255
Allow trailing newline to have fake position (#18298)
weswigham Sep 7, 2017
448d75c
Merge pull request #17675 from HerringtonDarkholme/master
DanielRosenwasser Sep 7, 2017
508cde0
Document assignment to aliasSymbol in getUnionTypeFromSortedList (#17…
Sep 7, 2017
1b5a0ae
Update pretty baseline changed by #17675 (#18320)
weswigham Sep 7, 2017
397ff84
Merge pull request #18317 from Microsoft/object-literal-enum-property…
sandersn Sep 7, 2017
2bc9ecb
Merge pull request #18296 from Microsoft/disable-lookahead-isStartOfP…
sandersn Sep 7, 2017
9e30642
Merge pull request #18315 from amcasey/TIDisabledProjects
amcasey Sep 7, 2017
8c64937
Merge pull request #18153 from Microsoft/optimizeArrays
ahejlsberg Sep 7, 2017
ed4e2e6
Ensure that emitter calls callbacks (#18284)
Sep 7, 2017
2e02778
When loading a module from node_modules, get packageId even in the `l…
Sep 7, 2017
0e50da6
Handle the combination of a write and a void return
amcasey Aug 30, 2017
27f9cdb
Explicitly avoid canonicalizing paths during configuration handling (…
weswigham Sep 7, 2017
9d11fbb
Correct permitted jumps check
amcasey Aug 30, 2017
a81fa7a
Make permittedJumps a parameter to eliminate save-restore pattern
amcasey Aug 30, 2017
e3808b6
Simplify and correct PermittedJumps computation
amcasey Aug 30, 2017
73bc0c9
Correct copied comment
amcasey Aug 30, 2017
baefdd2
Revert "Make permittedJumps a parameter to eliminate save-restore pat…
amcasey Sep 7, 2017
7aac67b
Test: parsing of two-line @typedef jsdoc
sandersn Sep 7, 2017
02cfb81
Merge pull request #18164 from amcasey/GH18140
amcasey Sep 7, 2017
fb5e8c6
Fix forEachChild's visit of JSDocTypedefTag
sandersn Sep 7, 2017
7d5b5e9
Update baselines
sandersn Sep 7, 2017
4ee7d3a
Remove unnecessary check in emitNodeList (#18327)
Sep 8, 2017
cab05dd
Inline variable to aid control flow
sandersn Sep 8, 2017
d4e3e19
Merge pull request #18333 from Microsoft/fix-forEachChild-JSDocTypede…
sandersn Sep 8, 2017
deefb01
Merge pull request #18165 from amcasey/GH18144
amcasey Sep 8, 2017
409d659
Add `never` helper function (#18287)
Sep 8, 2017
018c645
In import code fix, don't treat a re-export as an import (#18341)
Sep 9, 2017
e51e91d
Change wording of scope description (#18342)
Sep 9, 2017
dc8d47c
Remove bisect.cmd, remove reference to missing dts, update usage (#18…
weswigham Sep 9, 2017
eb80799
Care about esnext where we look for es2015 (#18331)
weswigham Sep 9, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 11 additions & 2 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Andy Hanson <[email protected]> Andy <[email protected]>
Anil Anar <[email protected]>
Anton Tolmachev <[email protected]>
Anubha Mathur <[email protected]> anubmat <[email protected]>
Armando Aguirre <[email protected]>
Arnaud Tournier <[email protected]>
Arnavion <[email protected]> # Arnav Singh
Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]>
Asad Saeeduddin <[email protected]>
Expand All @@ -26,6 +28,7 @@ Bill Ticehurst <[email protected]> Bill Ticehurst <[email protected]>
Ben Duffield <[email protected]>
Ben Mosher <[email protected]>
Benjamin Bock <[email protected]>
Benjamin Lichtman <[email protected]> uniqueiniquity <[email protected]>
Blake Embrey <[email protected]>
Bowden Kelly <[email protected]>
Brett Mayen <[email protected]>
Expand Down Expand Up @@ -59,6 +62,7 @@ Evan Sebastian <[email protected]>
Eyas <[email protected]> # Eyas Sharaiha
Fabian Cook <[email protected]>
falsandtru <[email protected]> # @falsandtru
Filipe Silva <[email protected]>
flowmemo <[email protected]> # @flowmemo
Frank Wallis <[email protected]>
František Žiacik <[email protected]> František Žiacik <[email protected]>
Expand Down Expand Up @@ -192,7 +196,7 @@ TruongSinh Tran-Nguyen <[email protected]>
vilicvane <[email protected]> # Vilic Vane
Vladimir Matveev <[email protected]> vladima <[email protected]> v2m <[email protected]>
Vadi Taslim <[email protected]>
Wesley Wigham <[email protected]> Wesley Wigham <[email protected]>
Wesley Wigham <[email protected]> Wesley Wigham <[email protected]> Wesley Wigham <[email protected]>
York Yao <[email protected]> york yao <[email protected]> yaoyao <[email protected]>
Yuichi Nukiyama <[email protected]> YuichiNukiyama <[email protected]>
Zev Spitz <[email protected]>
Expand Down Expand Up @@ -267,4 +271,9 @@ Reiner Dolp <[email protected]>
t_ <[email protected]> # @t_
TravCav <[email protected]> # @TravCav
Vladimir Kurchatkin <[email protected]>
William Orr <[email protected]>
William Orr <[email protected]>
Francois Wouts <[email protected]>
Jan Melcher <[email protected]> Jan Melcher <[email protected]>
Matt Mitchell <[email protected]>
Maxwell Paul Brickner <[email protected]>
Tycho Grouwstra <[email protected]>
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Jakefile.js
.gitattributes
.settings/
.travis.yml
.vscode/
.vscode/
test.config
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ matrix:
branches:
only:
- master
- release-2.5

install:
- npm uninstall typescript --no-save
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"problemMatcher": [
"$tsc"
]
},
{
"taskName": "tests",
"showOutput": "silent",
"problemMatcher": [
"$tsc"
]
}
]
}
9 changes: 9 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ TypeScript is authored by:
* Anton Khlynovskiy
* Anton Tolmachev
* Anubha Mathur
* Armando Aguirre
* Arnaud Tournier
* Arnav Singh
* Arthur Ozga
* Asad Saeeduddin
Expand All @@ -33,6 +35,7 @@ TypeScript is authored by:
* Ben Duffield
* Ben Mosher
* Benjamin Bock
* Benjamin Lichtman
* Benny Neugebauer
* Bill Ticehurst
* Blaine Bublitz
Expand Down Expand Up @@ -85,7 +88,9 @@ TypeScript is authored by:
* Eyas Sharaiha
* Fabian Cook
* @falsandtru
* Filipe Silva
* @flowmemo
* Francois Wouts
* Frank Wallis
* Franklin Tse
* František Žiacik
Expand All @@ -112,6 +117,7 @@ TypeScript is authored by:
* Jakub Młokosiewicz
* James Henry
* James Whitney
* Jan Melcher
* Jason Freeman
* Jason Jarrett
* Jason Killian
Expand Down Expand Up @@ -162,9 +168,11 @@ TypeScript is authored by:
* Masahiro Wakame
* Matt Bierner
* Matt McCutchen
* Matt Mitchell
* Mattias Buelens
* Mattias Buelens
* Max Deepfield
* Maxwell Paul Brickner
* Micah Zoltu
* Michael
* Michael Bromley
Expand Down Expand Up @@ -243,6 +251,7 @@ TypeScript is authored by:
* Torben Fitschen
* @TravCav
* TruongSinh Tran-Nguyen
* Tycho Grouwstra
* Vadi Taslim
* Vidar Tonaas Fauske
* Viktor Zozulyak
Expand Down
20 changes: 15 additions & 5 deletions Gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,11 @@ gulp.task(serverFile, /*help*/ false, [servicesFile, typingsInstallerJs, cancell
.pipe(gulp.dest("src/server"));
});

const typesMapJson = path.join(builtLocalDirectory, "typesMap.json");
const tsserverLibraryFile = path.join(builtLocalDirectory, "tsserverlibrary.js");
const tsserverLibraryDefinitionFile = path.join(builtLocalDirectory, "tsserverlibrary.d.ts");

gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile], (done) => {
gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (done) => {
const serverLibraryProject = tsc.createProject("src/server/tsconfig.library.json", getCompilerSettings({}, /*useBuiltCompiler*/ true));
const {js, dts}: { js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream } = serverLibraryProject.src()
.pipe(sourcemaps.init())
Expand All @@ -485,6 +486,15 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile], (done) => {
]);
});

gulp.task(typesMapJson, /*help*/ false, [], () => {
return gulp.src("src/server/typesMap.json")
.pipe(insert.transform((contents, file) => {
JSON.parse(contents);
return contents;
}))
.pipe(gulp.dest(builtLocalDirectory));
});

gulp.task("lssl", "Builds language service server library", [tsserverLibraryFile]);
gulp.task("local", "Builds the full compiler and services", [builtLocalCompiler, servicesFile, serverFile, builtGeneratedDiagnosticMessagesJSON, tsserverLibraryFile]);
gulp.task("tsc", "Builds only the compiler", [builtLocalCompiler]);
Expand Down Expand Up @@ -776,7 +786,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
const file = new Vinyl({ contents, path: bundlePath });
console.log(`Fixing sourcemaps for ${file.path}`);
// assumes contents is a Buffer, since that's what browserify yields
const maps = convertMap.fromSource(stringContent, /*largeSource*/ true).toObject();
const maps = convertMap.fromSource(stringContent).toObject();
delete maps.sourceRoot;
maps.sources = maps.sources.map(s => path.resolve(s === "_stream_0.js" ? "built/local/_stream_0.js" : s));
// Strip browserify's inline comments away (could probably just let sorcery do this, but then we couldn't fix the paths)
Expand Down Expand Up @@ -968,7 +978,7 @@ const instrumenterPath = path.join(harnessDirectory, "instrumenter.ts");
const instrumenterJsPath = path.join(builtLocalDirectory, "instrumenter.js");
gulp.task(instrumenterJsPath, /*help*/ false, [servicesFile], () => {
const settings: tsc.Settings = getCompilerSettings({
outFile: instrumenterJsPath,
module: "commonjs",
target: "es5",
lib: [
"es6",
Expand All @@ -980,8 +990,8 @@ gulp.task(instrumenterJsPath, /*help*/ false, [servicesFile], () => {
.pipe(newer(instrumenterJsPath))
.pipe(sourcemaps.init())
.pipe(tsc(settings))
.pipe(sourcemaps.write("."))
.pipe(gulp.dest("."));
.pipe(sourcemaps.write(builtLocalDirectory))
.pipe(gulp.dest(builtLocalDirectory));
});

gulp.task("tsc-instrumented", "Builds an instrumented tsc.js", ["local", loggedIOJsPath, instrumenterJsPath, servicesFile], (done) => {
Expand Down
58 changes: 29 additions & 29 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ var watchGuardSources = filesFromConfig(path.join(serverDirectory, "watchGuard/t
var serverSources = filesFromConfig(path.join(serverDirectory, "tsconfig.json"))
var languageServiceLibrarySources = filesFromConfig(path.join(serverDirectory, "tsconfig.library.json"));

var typesMapOutputPath = path.join(builtLocalDirectory, 'typesMap.json');

var harnessCoreSources = [
"harness.ts",
"virtualFileSystem.ts",
Expand Down Expand Up @@ -133,12 +135,15 @@ var harnessSources = harnessCoreSources.concat([
"projectErrors.ts",
"matchFiles.ts",
"initializeTSConfig.ts",
"extractMethods.ts",
"printer.ts",
"textChanges.ts",
"telemetry.ts",
"transform.ts",
"customTransforms.ts",
"programMissingFiles.ts",
"symbolWalker.ts",
"languageService.ts",
].map(function (f) {
return path.join(unittestsDirectory, f);
})).concat([
Expand Down Expand Up @@ -422,6 +427,7 @@ var buildProtocolTs = path.join(scriptsDirectory, "buildProtocol.ts");
var buildProtocolJs = path.join(scriptsDirectory, "buildProtocol.js");
var buildProtocolDts = path.join(builtLocalDirectory, "protocol.d.ts");
var typescriptServicesDts = path.join(builtLocalDirectory, "typescriptServices.d.ts");
var typesMapJson = path.join(builtLocalDirectory, "typesMap.json");

file(buildProtocolTs);

Expand Down Expand Up @@ -533,7 +539,6 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
compileFile(tscFile, compilerSources, [builtLocalDirectory, copyright].concat(compilerSources), [copyright], /*useBuiltCompiler:*/ false);

var servicesFile = path.join(builtLocalDirectory, "typescriptServices.js");
var servicesFileInBrowserTest = path.join(builtLocalDirectory, "typescriptServicesInBrowserTest.js");
var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
var nodePackageFile = path.join(builtLocalDirectory, "typescript.js");
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
Expand Down Expand Up @@ -572,22 +577,6 @@ compileFile(servicesFile, servicesSources, [builtLocalDirectory, copyright].conc
fs.writeFileSync(nodeStandaloneDefinitionsFile, nodeStandaloneDefinitionsFileContents);
});

compileFile(
servicesFileInBrowserTest,
servicesSources,
[builtLocalDirectory, copyright].concat(servicesSources),
/*prefixes*/[copyright],
/*useBuiltCompiler*/ true,
{
noOutFile: false,
generateDeclarations: true,
preserveConstEnums: true,
keepComments: true,
noResolve: false,
stripInternal: true,
inlineSourceMap: true
});

file(typescriptServicesDts, [servicesFile]);

var cancellationTokenFile = path.join(builtLocalDirectory, "cancellationToken.js");
Expand All @@ -603,6 +592,16 @@ var serverFile = path.join(builtLocalDirectory, "tsserver.js");
compileFile(serverFile, serverSources, [builtLocalDirectory, copyright, cancellationTokenFile, typingsInstallerFile, watchGuardFile].concat(serverSources).concat(servicesSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, { types: ["node"], preserveConstEnums: true, lib: "es6" });
var tsserverLibraryFile = path.join(builtLocalDirectory, "tsserverlibrary.js");
var tsserverLibraryDefinitionFile = path.join(builtLocalDirectory, "tsserverlibrary.d.ts");
file(typesMapOutputPath, function() {
var content = fs.readFileSync(path.join(serverDirectory, 'typesMap.json'));
// Validate that it's valid JSON
try {
JSON.parse(content);
} catch (e) {
console.log("Parse error in typesMap.json: " + e);
}
fs.writeFileSync(typesMapOutputPath, content);
});
compileFile(
tsserverLibraryFile,
languageServiceLibrarySources,
Expand All @@ -625,7 +624,7 @@ compileFile(

// Local target to build the language service server library
desc("Builds language service server library");
task("lssl", [tsserverLibraryFile, tsserverLibraryDefinitionFile]);
task("lssl", [tsserverLibraryFile, tsserverLibraryDefinitionFile, typesMapOutputPath]);

desc("Emit the start of the build fold");
task("build-fold-start", [], function () {
Expand Down Expand Up @@ -654,7 +653,6 @@ task("release", function () {
// Set the default task to "local"
task("default", ["local"]);


// Cleans the built directory
desc("Cleans the compiler output, declare files, and tests");
task("clean", function () {
Expand Down Expand Up @@ -725,7 +723,7 @@ compileFile(
/*prereqs*/[builtLocalDirectory, tscFile].concat(libraryTargets).concat(servicesSources).concat(harnessSources),
/*prefixes*/[],
/*useBuiltCompiler:*/ true,
/*opts*/ { inlineSourceMap: true, types: ["node", "mocha", "chai"], lib: "es6" });
/*opts*/ { types: ["node", "mocha", "chai"], lib: "es6" });

var internalTests = "internal/";

Expand Down Expand Up @@ -961,13 +959,14 @@ var nodeServerInFile = "tests/webTestServer.ts";
compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tscFile], [], /*useBuiltCompiler:*/ true, { noOutFile: true, lib: "es6" });

desc("Runs browserify on run.js to produce a file suitable for running tests in the browser");
task("browserify", ["tests", run, builtLocalDirectory, nodeServerOutFile], function() {
var cmd = 'browserify built/local/run.js -t ./scripts/browserify-optional -d -o built/local/bundle.js';
task("browserify", [], function() {
// Shell out to `gulp`, since we do the work to handle sourcemaps correctly w/o inline maps there
var cmd = 'gulp browserify --silent';
exec(cmd);
}, { async: true });

desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], browser=[chrome|IE]");
task("runtests-browser", ["tests", "browserify", builtLocalDirectory, servicesFileInBrowserTest], function () {
task("runtests-browser", ["browserify", nodeServerOutFile], function () {
cleanTestDirs();
host = "node";
browser = process.env.browser || process.env.b || (os.platform() === "linux" ? "chrome" : "IE");
Expand Down Expand Up @@ -1101,7 +1100,7 @@ file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function () {

var instrumenterPath = harnessDirectory + 'instrumenter.ts';
var instrumenterJsPath = builtLocalDirectory + 'instrumenter.js';
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true, { lib: "es6", types: ["node"] });
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true, { lib: "es6", types: ["node"], noOutFile: true, outDir: builtLocalDirectory });

desc("Builds an instrumented tsc.js");
task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function () {
Expand All @@ -1122,14 +1121,15 @@ task("update-sublime", ["local", serverFile], function () {

var tslintRuleDir = "scripts/tslint";
var tslintRules = [
"nextLineRule",
"booleanTriviaRule",
"typeOperatorSpacingRule",
"noInOperatorRule",
"debugAssertRule",
"nextLineRule",
"noBomRule",
"noIncrementDecrementRule",
"objectLiteralSurroundingSpaceRule",
"noInOperatorRule",
"noTypeAssertionWhitespaceRule",
"noBomRule"
"objectLiteralSurroundingSpaceRule",
"typeOperatorSpacingRule",
];
var tslintRulesFiles = tslintRules.map(function (p) {
return path.join(tslintRuleDir, p + ".ts");
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

For the latest stable version:

```
```bash
npm install -g typescript
```

For our nightly builds:

```
```bash
npm install -g typescript@next
```

Expand Down Expand Up @@ -50,19 +50,19 @@ In order to build the TypeScript compiler, ensure that you have [Git](https://gi

Clone a copy of the repo:

```
```bash
git clone https://github.com/Microsoft/TypeScript.git
```

Change to the TypeScript directory:

```
```bash
cd TypeScript
```

Install Gulp tools and dev dependencies:

```
```bash
npm install -g gulp
npm install
```
Expand All @@ -88,7 +88,7 @@ gulp help # List the above commands.

## Usage

```shell
```bash
node built/local/tsc.js hello.ts
```

Expand Down
Loading