Commit Graph

19046 Commits

Author SHA1 Message Date
Jason Ramsay ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Mohamed Hegazy 0cba37d5b2 Merge pull request #7358 from martine/empty-return
in noImplicitReturns mode, also disallow "return;"
2016-03-03 13:56:19 -08:00
Vladimir Matveev 744e51047e Merge pull request #7373 from Microsoft/limitInferenceDepth
set the maximum depth to explore during type inference
2016-03-03 12:18:49 -08:00
Evan Martin 5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Anders Hejlsberg 04c28b09a9 Accepting new baselines 2016-03-03 11:18:47 -08:00
Anders Hejlsberg ed958119a1 Fix unit test 2016-03-03 11:18:33 -08:00
Anders Hejlsberg ea4b13bdf9 Allow 'null' and 'undefined' as type names 2016-03-03 11:18:12 -08:00
Vladimir Matveev 1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy 24c47f18ad Merge pull request #7371 from Microsoft/checkForWatchFile
Fix #7362: check for --watchFile in tsconfig.json as well as on the c…
2016-03-03 10:44:26 -08:00
Mohamed Hegazy 30a6a33259 Fix #7362: check for --watchFile in tsconfig.json as well as on the commandline 2016-03-03 10:18:33 -08:00
Tingan Ho 194927e51b Update with master 2016-03-03 13:58:20 +08:00
Tingan Ho 99edce09bc Fixes CR feedback 2016-03-03 13:29:00 +08:00
Kanchalai Tanglertsampan 70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00
Ron Buckton c267691d8a Fixed labels 2016-03-02 16:55:25 -08:00
Anders Hejlsberg 33e3825beb Assigned-before-use checking for non-nullable variables 2016-03-02 16:40:16 -08:00
Mohamed Hegazy 0f6dbd0250 Merge pull request #7350 from basarat/patch-1
fix(build) `TypingResolutionHost` interface is used by exported function `discoverTypings`
2016-03-02 16:39:56 -08:00
zhengbli 8294a18150 Add tests 2016-03-02 16:13:52 -08:00
Ron Buckton aaf3ab7406 Merge branch 'transforms-transformer-module' into transforms-transformer-es6-generators 2016-03-02 15:50:56 -08:00
Ron Buckton 72eebdb4d4 Switched to onEmitNode 2016-03-02 15:50:18 -08:00
zhengbli 2835e259aa Enable navigateTo on all projects for a file 2016-03-02 15:50:00 -08:00
Ron Buckton c4a75babc6 Merge branch 'transforms-transformer-es6' into transforms-transformer-module 2016-03-02 15:47:46 -08:00
Ron Buckton 1c738181ef Switched to onEmitNode 2016-03-02 15:47:28 -08:00
Ron Buckton 7b28b48e13 Merge branch 'transforms-transformer-es7' into transforms-transformer-es6 2016-03-02 15:42:16 -08:00
Ron Buckton 593fbd4a71 Merge branch 'transforms-transformer-jsx' into transforms-transformer-es7 2016-03-02 15:41:31 -08:00
Ron Buckton 1fdaf746f0 Merge branch 'transforms-transformer-ts' into transforms-transformer-jsx 2016-03-02 15:40:33 -08:00
Ron Buckton 8b35af4ce5 Switched to onEmitNode 2016-03-02 15:39:56 -08:00
zhengbli 7663a96a7b Enable findReferences on all projects for a file 2016-03-02 15:37:35 -08:00
Basarat Ali Syed 1bebc711b0 fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-03 10:32:07 +11:00
Ron Buckton e66e51d809 Merge branch 'transforms-printer' into transforms-transformer-ts 2016-03-02 15:20:02 -08:00
Ron Buckton ebb47649ee Switch from onBefore/onAfterEmitNode to onEmitNode 2016-03-02 15:19:42 -08:00
zhengbli 55f4b02ed4 Enable rename on all projects for a file 2016-03-02 14:25:55 -08:00
Daniel Rosenwasser d6c56062b6 Merge pull request #7348 from Vinatorul/issue6540
Added new diagnostics message to clarify error for type guards
2016-03-02 13:55:56 -08:00
Alexander 694a48c445 Added new diagnostics message to clarify error for type guards
New diagnostics message "A type guard's type must be assignable to its parameter's type." number 2677
is now using in chain report to clarify vague error message for type guards.
2016-03-03 00:24:02 +03:00
Ron Buckton 88b38f8b40 Merge branch 'transforms-transformer-module' into transforms-transformer-es6-generators 2016-03-02 12:49:58 -08:00
Ron Buckton 70cbb9b330 Merge branch 'transforms-transformer-es6' into transforms-transformer-module 2016-03-02 12:32:05 -08:00
Ron Buckton 2d2709f8a5 Fixed typo in visitCallExpression 2016-03-02 12:05:28 -08:00
Ron Buckton 30433c2c67 ES6 cleanup 2016-03-02 11:38:30 -08:00
jramsay de47fcc113 Merge pull request #7179 from Microsoft/jsTypingForAcquireDts
Salsa: JS support for discovering and acquiring d.ts files
2016-03-02 11:10:12 -08:00
Jason Ramsay e8772bc0a2 - Adding new lines after { for single-line if statements
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-02 10:11:13 -08:00
Vladimir Matveev f34dcdd464 Merge pull request #7328 from Microsoft/flipSidesInSignatureCheck
flip sides source and target when we check signature relations
2016-03-01 19:28:19 -08:00
Jason Ramsay 4bbdf2a0bb - Removing filesToWatch from getTypingNamesFromNodeModuleFolder.
These modules are already installed and are not expected to change
2016-03-01 19:06:31 -08:00
Jason Ramsay 6aad783db8 - Adding DiscoverTypingsSettings
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-01 18:52:11 -08:00
Vladimir Matveev b3552c69d7 Merge pull request #7329 from Microsoft/allowFallFromLastCase
allow fallthrough from the last case of the switch
2016-03-01 17:24:00 -08:00
zhengbli 1224013f77 Update the format span end position for formatOnEnter 2016-03-01 16:45:56 -08:00
Ron Buckton 88e17728d6 Merge branch 'transforms-transformer-es7' into transforms-transformer-es6 2016-03-01 15:59:45 -08:00
Vladimir Matveev 568e2aab58 allow fallthrough from the last case of the switch 2016-03-01 15:58:59 -08:00
Vladimir Matveev 0ef2b9ea85 flip sides source and target when we check signature relations 2016-03-01 15:47:00 -08:00
Ron Buckton 2c9cd2eb55 Merge branch 'transforms-transformer-jsx' into transforms-transformer-es7 2016-03-01 15:43:37 -08:00
Ron Buckton 186f5c8bca PR Feedback 2016-03-01 15:26:29 -08:00
Ron Buckton 7d05ba28bf Fixed visitJsxText, plus PR Feedback 2016-03-01 15:16:41 -08:00